summaryrefslogtreecommitdiffstats
path: root/rsa_key.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rsa_key.cpp')
-rw-r--r--rsa_key.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/rsa_key.cpp b/rsa_key.cpp
index c92bab0..0f7ff44 100644
--- a/rsa_key.cpp
+++ b/rsa_key.cpp
@@ -143,21 +143,6 @@ Key* RsaKeyFactory::ImportKey(const AuthorizationSet& key_description,
return new RsaKey(rsa_key.release(), authorizations);
}
-Key* RsaKeyFactory::RescopeKey(const UnencryptedKeyBlob& blob,
- const AuthorizationSet& new_authorizations,
- keymaster_error_t* error) {
- if (!error)
- return NULL;
-
- RsaKey original_key(blob, error);
- if (*error != KM_ERROR_OK)
- return NULL;
-
- RsaKey* new_key = new RsaKey(original_key.rsa_key_.release(), new_authorizations);
- *error = new_key ? KM_ERROR_OK : KM_ERROR_MEMORY_ALLOCATION_FAILED;
- return new_key;
-}
-
RsaKey::RsaKey(const UnencryptedKeyBlob& blob, keymaster_error_t* error) : AsymmetricKey(blob) {
if (error)
*error = LoadKey(blob);