Lines Matching refs:rsa_key
84 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()
161 if (RSA_size(rsa_key.get()) * 8 != *key_size) { in UpdateImportKeyDescription()
163 RSA_size(rsa_key.get()) * 8, *key_size); in UpdateImportKeyDescription()