Add AES key generation support.
This change was already reviewed, merged and reverted, so I'm skipping
the review step this time.
Change-Id: Ia6450b43ca9a347fd6027837439c2ea8f91a712c
diff --git a/google_keymaster.cpp b/google_keymaster.cpp
index 47f22cf..8bf1974 100644
--- a/google_keymaster.cpp
+++ b/google_keymaster.cpp
@@ -55,8 +55,14 @@
};
typedef UniquePtr<ae_ctx, AE_CTX_Delete> Unique_ae_ctx;
+// TODO(swillden): Unify support analysis. Right now, we have per-keytype methods that determine if
+// specific modes, padding, etc. are supported for that key type, and GoogleKeymaster also has
+// methods that return the same information. They'll get out of sync. Best to put the knowledge in
+// the keytypes and provide some mechanism for GoogleKeymaster to query the keytypes for the
+// information.
+
keymaster_algorithm_t supported_algorithms[] = {
- KM_ALGORITHM_RSA, KM_ALGORITHM_DSA, KM_ALGORITHM_ECDSA,
+ KM_ALGORITHM_RSA, KM_ALGORITHM_DSA, KM_ALGORITHM_ECDSA, KM_ALGORITHM_AES,
};
template <typename T>