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

Commit 1be04ec2 authored by Tri Vo's avatar Tri Vo Committed by Gerrit Code Review
Browse files

Merge "Update challenge size check"

parents ceeb3570 2fcd4b6b
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.";
    }