Home
last modified time | relevance | path

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

/system/keymaster/
Drsa_key_factory.cpp84 UniquePtr<RSA, RsaKey::RSA_Delete> rsa_key(RSA_new()); in GenerateKey() local
86 if (exponent.get() == NULL || rsa_key.get() == NULL || pkey.get() == NULL) in GenerateKey()
90 !RSA_generate_key_ex(rsa_key.get(), key_size, exponent.get(), NULL /* callback */)) in GenerateKey()
93 if (EVP_PKEY_set1_RSA(pkey.get(), rsa_key.get()) != 1) in GenerateKey()
141 UniquePtr<RSA, RsaKey::RSA_Delete> rsa_key(EVP_PKEY_get1_RSA(pkey.get())); in UpdateImportKeyDescription() local
142 if (!rsa_key.get()) in UpdateImportKeyDescription()
147 *public_exponent = BN_get_word(rsa_key->e); in UpdateImportKeyDescription()
152 if (*public_exponent != BN_get_word(rsa_key->e)) { in UpdateImportKeyDescription()
154 *public_exponent, BN_get_word(rsa_key->e)); in UpdateImportKeyDescription()
158 *key_size = RSA_size(rsa_key.get()) * 8; in UpdateImportKeyDescription()
[all …]
Drsa_keymaster1_operation.cpp31 keymaster_error_t RsaKeymaster1WrappedOperation::Begin(EVP_PKEY* rsa_key, in Begin() argument
33 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in Begin()
77 RsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* rsa_key, in PrepareFinish() argument
79 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in PrepareFinish()
94 keymaster_error_t RsaKeymaster1WrappedOperation::GetError(EVP_PKEY* rsa_key) { in GetError() argument
95 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); // key_data is owned by rsa in GetError()
Drsa_keymaster0_key.h63 RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, in RsaKeymaster0Key() argument
65 : RsaKey(rsa_key, hw_enforced, sw_enforced, error) {} in RsaKeymaster0Key()
Drsa_keymaster1_operation.h39 keymaster_error_t Begin(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
40 keymaster_error_t PrepareFinish(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
44 keymaster_error_t GetError(EVP_PKEY* rsa_key);
Drsa_keymaster1_key.h74 RsaKeymaster1Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, in RsaKeymaster1Key() argument
76 : RsaKey(rsa_key, hw_enforced, sw_enforced, error) {} in RsaKeymaster1Key()
Drsa_operation.cpp41 const RsaKey* rsa_key = static_cast<const RsaKey*>(&key); in GetRsaKey() local
42 assert(rsa_key); in GetRsaKey()
43 if (!rsa_key || !rsa_key->key()) { in GetRsaKey()
49 if (!rsa_key->InternalToEvp(pkey.get())) { in GetRsaKey()
DMakefile117 rsa_key.cpp \
347 rsa_key.o \
DAndroid.bp78 "rsa_key.cpp",
/system/core/trusty/keymaster/
DMakefile84 $(KM)/rsa_key.cpp \
180 $(KM)/rsa_key.o \
/system/tpm/trunks/
Dtpm_utility_impl.cc1547 ScopedKeyHandle rsa_key(factory_, object_handle); in CreateStorageRootKeys() local