Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Drsa_key_factory.cpp82 UniquePtr<RSA, RsaKey::RSA_Delete> rsa_key(RSA_new()); in GenerateKey() local
84 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) in GenerateKey()
139 UniquePtr<RSA, RsaKey::RSA_Delete> rsa_key(EVP_PKEY_get1_RSA(pkey.get())); in UpdateImportKeyDescription() local
140 if (!rsa_key.get()) in UpdateImportKeyDescription()
145 *public_exponent = BN_get_word(rsa_key->e); in UpdateImportKeyDescription()
150 if (*public_exponent != BN_get_word(rsa_key->e)) { in UpdateImportKeyDescription()
152 *public_exponent, BN_get_word(rsa_key->e)); in UpdateImportKeyDescription()
156 *key_size = RSA_size(rsa_key.get()) * 8; in UpdateImportKeyDescription()
[all …]
Drsa_operation.cpp39 const RsaKey& rsa_key = static_cast<RsaKey&>(key); in GetRsaKey() local
40 if (!rsa_key.key()) { in GetRsaKey()
46 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()
81 RsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* rsa_key, in PrepareFinish() argument
83 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); in PrepareFinish()
98 keymaster_error_t RsaKeymaster1WrappedOperation::GetError(EVP_PKEY* rsa_key) { in GetError() argument
99 Keymaster1Engine::KeyData* key_data = engine_->GetData(rsa_key); // key_data is owned by rsa in GetError()
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);
43 keymaster_error_t GetError(EVP_PKEY* rsa_key);
/system/keymaster/include/keymaster/legacy_support/
Drsa_keymaster0_key.h62 RsaKeymaster0Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, in RsaKeymaster0Key() argument
65 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} in RsaKeymaster0Key()
Drsa_keymaster1_key.h74 RsaKeymaster1Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, in RsaKeymaster1Key() argument
77 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} in RsaKeymaster1Key()
/system/core/adb/daemon/
Dauth.cpp128 bssl::UniquePtr<RSA> rsa_key(key); in adbd_tls_client_ca_list() local
131 int len = i2d_RSA_PUBKEY(rsa_key.get(), &dkey); in adbd_tls_client_ca_list()
/system/keymaster/
DMakefile121 km_openssl/rsa_key.cpp \
373 km_openssl/rsa_key.o \
DAndroid.bp111 "km_openssl/rsa_key.cpp",