Lines Matching refs:rsa_key
81 RSA *rsa_key = 0; in vb1_make_keypair() local
95 rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); in vb1_make_keypair()
98 if (!rsa_key) { in vb1_make_keypair()
103 sig_alg = vb2_rsa_sig_alg(rsa_key); in vb1_make_keypair()
118 privkey->rsa_private_key = rsa_key; in vb1_make_keypair()
130 ret = vb_keyb_from_rsa(rsa_key, &keyb_data, &keyb_size); in vb1_make_keypair()
155 RSA_free(rsa_key); in vb1_make_keypair()
163 RSA *rsa_key = 0; in vb2_make_keypair() local
178 rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); in vb2_make_keypair()
181 if (!rsa_key) { in vb2_make_keypair()
186 sig_alg = vb2_rsa_sig_alg(rsa_key); in vb2_make_keypair()
198 privkey->rsa_private_key = rsa_key; in vb2_make_keypair()
222 if (vb_keyb_from_rsa(rsa_key, &keyb_data, &keyb_size)) { in vb2_make_keypair()
259 RSA_free(rsa_key); in vb2_make_keypair()