Remove reference to DSA and rename KM_ALGORITHM_ECDSA.
Change-Id: Ibffddc5c3a5c728182f5ca7f6a76381413fc8645
diff --git a/ecdsa_operation.cpp b/ecdsa_operation.cpp
index 607d7ad..e1397d6 100644
--- a/ecdsa_operation.cpp
+++ b/ecdsa_operation.cpp
@@ -27,7 +27,7 @@
class EcdsaSignOperationFactory : public OperationFactory {
public:
- virtual KeyType registry_key() const { return KeyType(KM_ALGORITHM_ECDSA, KM_PURPOSE_SIGN); }
+ virtual KeyType registry_key() const { return KeyType(KM_ALGORITHM_EC, KM_PURPOSE_SIGN); }
virtual Operation* CreateOperation(const Key& key, keymaster_error_t* error) {
const EcKey* ecdsa_key = static_cast<const EcKey*>(&key);
@@ -57,7 +57,7 @@
class EcdsaVerifyOperationFactory : public OperationFactory {
public:
- virtual KeyType registry_key() const { return KeyType(KM_ALGORITHM_ECDSA, KM_PURPOSE_VERIFY); }
+ virtual KeyType registry_key() const { return KeyType(KM_ALGORITHM_EC, KM_PURPOSE_VERIFY); }
virtual Operation* CreateOperation(const Key& key, keymaster_error_t* error) {
const EcKey* ecdsa_key = static_cast<const EcKey*>(&key);