diff --git a/Applet/src/com/android/javacard/keymaster/RemotelyProvisionedComponentDevice.java b/Applet/src/com/android/javacard/keymaster/RemotelyProvisionedComponentDevice.java index 8c385e6e..e92f7713 100644 --- a/Applet/src/com/android/javacard/keymaster/RemotelyProvisionedComponentDevice.java +++ b/Applet/src/com/android/javacard/keymaster/RemotelyProvisionedComponentDevice.java @@ -413,7 +413,7 @@ public void processUpdateChallenge(APDU apdu) throws Exception { // Store the challenge in the data table. short challenge = KMArray.cast(arr).get((short) 0); short challengeLen = KMByteBlob.cast(challenge).length(); - if (challengeLen < 32 || challengeLen > 64) { + if (challengeLen > 64) { KMException.throwIt(KMError.INVALID_INPUT_LENGTH); } short dataEntryIndex = createEntry(CHALLENGE, challengeLen);