Home
last modified time | relevance | path

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

/system/keymaster/
Dasymmetric_key.cpp141 UniquePtr<RSA, RSA_Delete> rsa_key(RSA_new()); in GenerateKey() local
143 if (rsa_key.get() == NULL || pkey.get() == NULL) { in GenerateKey()
149 !RSA_generate_key_ex(rsa_key.get(), key_size, exponent.get(), NULL /* callback */)) { in GenerateKey()
154 RsaKey* new_key = new RsaKey(rsa_key.release(), authorizations, logger); in GenerateKey()
166 UniquePtr<RSA, RSA_Delete> rsa_key(EVP_PKEY_get1_RSA(pkey)); in ImportKey() local
167 if (!rsa_key.get()) in ImportKey()
178 if (BN_cmp(public_exponent_bn.get(), rsa_key->e) != 0) { in ImportKey()
184 public_exponent = BN_get_word(rsa_key->e); in ImportKey()
195 if (RSA_size(rsa_key.get()) != (int)key_size) { in ImportKey()
200 key_size = RSA_size(rsa_key.get()) * 8; in ImportKey()
[all …]
Dasymmetric_key.h72 RsaKey(RSA* rsa_key, const AuthorizationSet& auths, const Logger& logger) in RsaKey() argument
73 : AsymmetricKey(auths, logger), rsa_key_(rsa_key) {} in RsaKey()