mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Update challenge size check
aosp/2480181 changed minimum challenge size to 16. Bug: 272392463 Test: VtsHalRemotelyProvisionedComponentTargetTest Change-Id: I420f230651192e8fd67aab2ceff916a9c8b6db92
This commit is contained in:
@@ -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.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user