Skip to content

Commit 1c31b18

Browse files
authored
Merge pull request #228 from subrahmanyaman/Javacard_KeyMint_200_master
Set upper limit for RKP challenge
2 parents 9b85833 + af1da5f commit 1c31b18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Applet/src/com/android/javacard/keymaster/RemotelyProvisionedComponentDevice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public void processUpdateChallenge(APDU apdu) throws Exception {
413413
// Store the challenge in the data table.
414414
short challenge = KMArray.cast(arr).get((short) 0);
415415
short challengeLen = KMByteBlob.cast(challenge).length();
416-
if (challengeLen < 32 || challengeLen > 64) {
416+
if (challengeLen > 64) {
417417
KMException.throwIt(KMError.INVALID_INPUT_LENGTH);
418418
}
419419
short dataEntryIndex = createEntry(CHALLENGE, challengeLen);

0 commit comments

Comments
 (0)