Home
last modified time | relevance | path

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

/system/keymaster/
Drsa_key_factory.cpp78 UniquePtr<RSA, RsaKey::RSA_Delete> rsa_key(RSA_new()); in GenerateKey() local
80 if (exponent.get() == NULL || rsa_key.get() == NULL || pkey.get() == NULL) in GenerateKey()
84 !RSA_generate_key_ex(rsa_key.get(), key_size, exponent.get(), NULL /* callback */)) in GenerateKey()
87 if (EVP_PKEY_set1_RSA(pkey.get(), rsa_key.get()) != 1) in GenerateKey()
135 UniquePtr<RSA, RsaKey::RSA_Delete> rsa_key(EVP_PKEY_get1_RSA(pkey.get())); in UpdateImportKeyDescription() local
136 if (!rsa_key.get()) in UpdateImportKeyDescription()
141 *public_exponent = BN_get_word(rsa_key->e); in UpdateImportKeyDescription()
146 if (*public_exponent != BN_get_word(rsa_key->e)) { in UpdateImportKeyDescription()
148 *public_exponent, BN_get_word(rsa_key->e)); in UpdateImportKeyDescription()
152 *key_size = RSA_size(rsa_key.get()) * 8; in UpdateImportKeyDescription()
[all …]
Drsa_keymaster0_key.cpp137 RsaKeymaster0Key::RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, in RsaKeymaster0Key() argument
140 : RsaKey(rsa_key, hw_enforced, sw_enforced, error), engine_(engine) {} in RsaKeymaster0Key()
Drsa_operation.cpp42 const RsaKey* rsa_key = static_cast<const RsaKey*>(&key); in GetRsaKey() local
43 assert(rsa_key); in GetRsaKey()
44 if (!rsa_key || !rsa_key->key()) { in GetRsaKey()
50 if (!rsa_key->InternalToEvp(pkey.get())) { in GetRsaKey()
Drsa_keymaster0_key.h65 RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced,
DMakefile101 rsa_key.cpp \
248 rsa_key.o \
DAndroid.mk70 rsa_key.cpp \