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