diff options
Diffstat (limited to 'keystore')
-rw-r--r-- | keystore/java/android/security/keystore/KeyProperties.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/keystore/java/android/security/keystore/KeyProperties.java b/keystore/java/android/security/keystore/KeyProperties.java index f9fe176..2b49297 100644 --- a/keystore/java/android/security/keystore/KeyProperties.java +++ b/keystore/java/android/security/keystore/KeyProperties.java @@ -210,10 +210,6 @@ public abstract class KeyProperties { int keymasterAlgorithm, int keymasterDigest) { switch (keymasterAlgorithm) { case KeymasterDefs.KM_ALGORITHM_AES: - if (keymasterDigest != -1) { - throw new IllegalArgumentException("Digest not supported for AES key: " - + Digest.fromKeymaster(keymasterDigest)); - } return KEY_ALGORITHM_AES; case KeymasterDefs.KM_ALGORITHM_HMAC: switch (keymasterDigest) { |