Home
last modified time | relevance | path

Searched refs:rsa_key (Results 1 – 7 of 7) sorted by relevance

/system/keymaster/km_openssl/
Drsa_key_factory.cpp81 RSA_Ptr rsa_key(RSA_new()); in GenerateKey() local
83 if (exponent.get() == nullptr || rsa_key.get() == nullptr || pkey.get() == nullptr) { in GenerateKey()
88 !RSA_generate_key_ex(rsa_key.get(), key_size, exponent.get(), nullptr /* callback */)) in GenerateKey()
91 if (EVP_PKEY_set1_RSA(pkey.get(), rsa_key.get()) != 1) return TranslateLastOpenSslError(); in GenerateKey()
104 RsaKey key(*hw_enforced, *sw_enforced, this, move(rsa_key)); in GenerateKey()
149 RSA_Ptr rsa_key(EVP_PKEY_get1_RSA(pkey.get())); in ImportKey() local
150 if (!rsa_key.get()) return KM_ERROR_INVALID_ARGUMENT; in ImportKey()
152 RsaKey key(*hw_enforced, *sw_enforced, this, move(rsa_key)); in ImportKey()
182 RSA_Ptr rsa_key(EVP_PKEY_get1_RSA(pkey.get())); in UpdateImportKeyDescription() local
183 if (!rsa_key.get()) return TranslateLastOpenSslError(); in UpdateImportKeyDescription()
[all …]
Drsa_operation.cpp38 const RsaKey& rsa_key = static_cast<const RsaKey&>(key); in GetRsaKey() local
39 if (!rsa_key.key()) { in GetRsaKey()
45 if (!rsa_key.InternalToEvp(pkey.get())) { in GetRsaKey()
/system/keymaster/legacy_support/
Drsa_keymaster1_operation.cpp30 keymaster_error_t RsaKeymaster1WrappedOperation::Begin(EVP_PKEY* rsa_key, in Begin() argument
32 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in Begin()
79 RsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* rsa_key, in PrepareFinish() argument
81 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in PrepareFinish()
96 keymaster_error_t RsaKeymaster1WrappedOperation::GetError(EVP_PKEY* rsa_key) { in GetError() argument
97 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); // key_data is owned by rsa in GetError()
Drsa_keymaster1_operation.h37 keymaster_error_t Begin(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
38 keymaster_error_t PrepareFinish(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
41 keymaster_error_t GetError(EVP_PKEY* rsa_key);
/system/keymaster/include/keymaster/km_openssl/
Drsa_key.h33 RSA_Ptr rsa_key) in RsaKey() argument
34 : AsymmetricKey(move(hw_enforced), move(sw_enforced), factory), rsa_key_(move(rsa_key)) {} in RsaKey()
/system/keymaster/include/keymaster/legacy_support/
Drsa_keymaster1_key.h80 RsaKeymaster1Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaKeymaster1Key() argument
82 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} in RsaKeymaster1Key()
/system/keymaster/
DAndroid.bp147 "km_openssl/rsa_key.cpp",