Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93742c25 authored by Tri Vo's avatar Tri Vo Committed by Automerger Merge Worker
Browse files

Merge "Update challenge size check" am: 1be04ec2 am: 40d4cc52

parents 0c1a79c5 40d4cc52
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -805,8 +805,8 @@ ErrMsgOr<bytevec> parseAndValidateAuthenticatedRequestSignedPayload(
        return "Challenge must be a Bstr.";
    }

    if (challenge.size() < 32 || challenge.size() > 64) {
        return "Challenge size must be between 32 and 64 bytes inclusive. "
    if (challenge.size() < 16 || challenge.size() > 64) {
        return "Challenge size must be between 16 and 64 bytes inclusive. "
               "However, challenge is " +
               std::to_string(challenge.size()) + " bytes long.";
    }