diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-04-23 19:42:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-04-23 19:42:42 +0000 |
commit | 14c4a813c15ebf9de2ed99cda07c523620b70f47 (patch) | |
tree | 518373674ff3d5e674c7baeb0aa4e37f233c362d | |
parent | 6bb601d50de06969792e9b673f1edf42e6912f80 (diff) | |
parent | 86e11ea3b714b78da4ba7acea16bf2b52734a201 (diff) | |
download | libese-main.tar.gz |
-rw-r--r-- | ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/KMKeymasterApplet.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/KMKeymasterApplet.java b/ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/KMKeymasterApplet.java index abbc860..e122283 100644 --- a/ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/KMKeymasterApplet.java +++ b/ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/KMKeymasterApplet.java @@ -4070,17 +4070,6 @@ public class KMKeymasterApplet extends Applet implements AppletEvent, ExtendedLe data[CERTIFICATE] = KMArray.instance((short) 0); // by default the cert is empty. data[ORIGIN] = KMType.IMPORTED; - // ID_IMEI should be present if ID_SECOND_IMEI is present - short attIdTag = - KMKeyParameters.findTag( - KMType.BYTES_TAG, KMType.ATTESTATION_ID_SECOND_IMEI, data[KEY_PARAMETERS]); - if (attIdTag != KMType.INVALID_VALUE) { - KMTag.assertPresence( - data[KEY_PARAMETERS], - KMType.BYTES_TAG, - KMType.ATTESTATION_ID_IMEI, - KMError.CANNOT_ATTEST_IDS); - } importKey(apdu, keyFmt, scratchPad); } @@ -4548,17 +4537,6 @@ public class KMKeymasterApplet extends Applet implements AppletEvent, ExtendedLe KMException.throwIt(KMError.UNSUPPORTED_TAG); } - // ID_IMEI should be present if ID_SECOND_IMEI is present - short attIdTag = - KMKeyParameters.findTag( - KMType.BYTES_TAG, KMType.ATTESTATION_ID_SECOND_IMEI, data[KEY_PARAMETERS]); - if (attIdTag != KMType.INVALID_VALUE) { - KMTag.assertPresence( - data[KEY_PARAMETERS], - KMType.BYTES_TAG, - KMType.ATTESTATION_ID_IMEI, - KMError.CANNOT_ATTEST_IDS); - } short attKeyPurpose = KMKeyParameters.findTag(KMType.ENUM_ARRAY_TAG, KMType.PURPOSE, data[KEY_PARAMETERS]); |