Lines Matching refs:pkey

314 	EVP_PKEY *pkey = NULL;	/* temp key */
655 pkey = EVP_PKEY_new();
656 EVP_PKEY_assign_RSA(pkey, rsa);
657 PEM_write_PKCS8PrivateKey(stdout, pkey, NULL, NULL, 0,
677 pkey = EVP_PKEY_new();
678 EVP_PKEY_assign_RSA(pkey, rsa);
679 PEM_write_PKCS8PrivateKey(stdout, pkey, cipher, NULL, 0,
721 pkey = EVP_PKEY_new();
722 EVP_PKEY_assign_DSA(pkey, dsa);
723 PEM_write_PKCS8PrivateKey(stdout, pkey, NULL, NULL, 0,
743 pkey = EVP_PKEY_new();
744 EVP_PKEY_assign_DSA(pkey, dsa);
745 PEM_write_PKCS8PrivateKey(stdout, pkey, cipher, NULL, 0,
782 pkey = pkey_mvpar[2];
783 PEM_write_PKCS8PrivateKey(stdout, pkey, NULL, NULL, 0,
787 DSA_print_fp(stderr, EVP_PKEY_get0_DSA(pkey), 0);
800 pkey = pkey_mvpar[1];
801 PEM_write_PKCS8PrivateKey(stdout, pkey, cipher, NULL, 0,
805 DSA_print_fp(stderr, EVP_PKEY_get0_DSA(pkey), 0);
904 EVP_PKEY *pkey = NULL; /* public/private key */
951 if (pkey == NULL)
952 pkey = parkey;
963 if (pkey == NULL) {
970 return (pkey);
982 EVP_PKEY *pkey; /* private key */
1016 pkey = EVP_PKEY_new();
1017 EVP_PKEY_assign_RSA(pkey, rsa);
1018 PEM_write_PKCS8PrivateKey(str, pkey, cipher, NULL, 0, NULL,
1023 return (pkey);
1035 EVP_PKEY *pkey; /* private key */
1068 pkey = EVP_PKEY_new();
1069 EVP_PKEY_assign_DSA(pkey, dsa);
1070 PEM_write_PKCS8PrivateKey(str, pkey, cipher, NULL, 0, NULL,
1075 return (pkey);
1134 EVP_PKEY *pkey; /* private key */
1236 pkey = EVP_PKEY_new();
1237 EVP_PKEY_assign_DSA(pkey, dsa);
1238 PEM_write_PKCS8PrivateKey(str, pkey, cipher, NULL, 0, NULL,
1243 return (pkey);
1313 EVP_PKEY *pkey; /* private key */
1439 pkey = EVP_PKEY_new();
1440 EVP_PKEY_assign_RSA(pkey, rsa);
1441 PEM_write_PKCS8PrivateKey(str, pkey, cipher, NULL, 0, NULL,
1446 return (pkey);
1529 EVP_PKEY *pkey, *pkey1; /* private keys */
1844 pkey = EVP_PKEY_new();
1845 EVP_PKEY_assign_DSA(pkey, dsa);
1846 PEM_write_PKCS8PrivateKey(str, pkey, cipher, NULL, 0, NULL,
1848 evpars[i++] = pkey;
1926 return (pkey);
1943 EVP_PKEY *pkey, /* signing key */
1981 if (!X509_set_pubkey(cert, pkey)) {
2061 X509_sign(cert, pkey, md);
2062 if (X509_verify(cert, pkey) <= 0) {