Lines Matching refs:rsa
66 RSA *rsa = NULL; in convert_x509() local
91 rsa = EVP_PKEY_get1_RSA(pkey); in convert_x509()
92 if (!rsa) { in convert_x509()
97 if (write_public_keyfile(rsa, key_file) < 0) { in convert_x509()
114 if (rsa) { in convert_x509()
115 RSA_free(rsa); in convert_x509()
125 RSA* rsa = RSA_new(); in generate_key() local
129 if (!pkey || !exponent || !rsa) { in generate_key()
135 RSA_generate_key_ex(rsa, 2048, exponent, NULL); in generate_key()
136 EVP_PKEY_set1_RSA(pkey, rsa); in generate_key()
149 if (write_public_keyfile(rsa, file) < 0) { in generate_key()
160 RSA_free(rsa); in generate_key()