diff options
Diffstat (limited to 'keystore/java')
-rw-r--r-- | keystore/java/android/security/KeyStoreKeyConstraints.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystore/java/android/security/KeyStoreKeyConstraints.java b/keystore/java/android/security/KeyStoreKeyConstraints.java index e61092f..98ac3e7 100644 --- a/keystore/java/android/security/KeyStoreKeyConstraints.java +++ b/keystore/java/android/security/KeyStoreKeyConstraints.java @@ -164,7 +164,7 @@ public abstract class KeyStoreKeyConstraints { case RSA: return KeymasterDefs.KM_ALGORITHM_RSA; case EC: - return KeymasterDefs.KM_ALGORITHM_ECDSA; + return KeymasterDefs.KM_ALGORITHM_EC; default: throw new IllegalArgumentException("Unknown algorithm: " + algorithm); } @@ -181,7 +181,7 @@ public abstract class KeyStoreKeyConstraints { return HMAC; case KeymasterDefs.KM_ALGORITHM_RSA: return RSA; - case KeymasterDefs.KM_ALGORITHM_ECDSA: + case KeymasterDefs.KM_ALGORITHM_EC: return EC; default: throw new IllegalArgumentException("Unknown algorithm: " + algorithm); |