Lines Matching refs:rsa
60 RSA *rsa; in rsa_pem_get_pub_key() local
90 rsa = EVP_PKEY_get1_RSA(key); in rsa_pem_get_pub_key()
91 if (!rsa) { in rsa_pem_get_pub_key()
99 *rsap = rsa; in rsa_pem_get_pub_key()
127 RSA *rsa; in rsa_engine_get_pub_key() local
153 rsa = EVP_PKEY_get1_RSA(key); in rsa_engine_get_pub_key()
154 if (!rsa) { in rsa_engine_get_pub_key()
161 *rsap = rsa; in rsa_engine_get_pub_key()
199 RSA *rsa; in rsa_pem_get_priv_key() local
211 rsa = PEM_read_RSAPrivateKey(f, 0, NULL, path); in rsa_pem_get_priv_key()
212 if (!rsa) { in rsa_pem_get_priv_key()
218 *rsap = rsa; in rsa_pem_get_priv_key()
238 RSA *rsa; in rsa_engine_get_priv_key() local
264 rsa = EVP_PKEY_get1_RSA(key); in rsa_engine_get_priv_key()
265 if (!rsa) { in rsa_engine_get_priv_key()
272 *rsap = rsa; in rsa_engine_get_priv_key()
385 static int rsa_sign_with_key(RSA *rsa, struct checksum_algo *checksum_algo, in rsa_sign_with_key() argument
399 if (!EVP_PKEY_set1_RSA(key, rsa)) { in rsa_sign_with_key()
463 RSA *rsa; in rsa_sign() local
477 ret = rsa_get_priv_key(info->keydir, info->keyname, e, &rsa); in rsa_sign()
480 ret = rsa_sign_with_key(rsa, info->checksum, region, in rsa_sign()
485 RSA_free(rsa); in rsa_sign()
493 RSA_free(rsa); in rsa_sign()
697 RSA *rsa; in rsa_add_verify_data() local
706 ret = rsa_get_pub_key(info->keydir, info->keyname, e, &rsa); in rsa_add_verify_data()
709 ret = rsa_get_params(rsa, &exponent, &n0_inv, &modulus, &r_squared); in rsa_add_verify_data()
778 RSA_free(rsa); in rsa_add_verify_data()