Lines Matching refs:pubkey
1378 RSA *pubkey = EVP_PKEY_get1_RSA(key->keyp);
1380 if (!(n = i2d_RSA_PUBKEY(pubkey, &keydata->Data))) {
1384 RSA_free(pubkey);
1386 DSA *pubkey = EVP_PKEY_get1_DSA(key->keyp);
1388 if (!(n = i2d_DSA_PUBKEY(pubkey, &keydata->Data))) {
1392 DSA_free(pubkey);
1487 KMF_KEY_HANDLE *pubkey = NULL, *privkey = NULL;
1506 pubkey = kmf_get_attr_ptr(KMF_PUBKEY_HANDLE_ATTR, attrlist, numattr);
1507 if (pubkey == NULL)
1514 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE));
1572 pubkey->kstype = KMF_KEYSTORE_OPENSSL;
1573 pubkey->keyalg = KMF_RSA;
1574 pubkey->israw = FALSE;
1575 pubkey->keyclass = KMF_ASYM_PUB;
1576 pubkey->keyp = (void *)epubkey;
1660 pubkey->kstype = KMF_KEYSTORE_OPENSSL;
1661 pubkey->keyalg = KMF_DSA;
1662 pubkey->keyclass = KMF_ASYM_PUB;
1663 pubkey->israw = FALSE;
1666 pubkey->keyp = (void *)epubkey;
1730 if (pubkey->keylabel) {
1731 free(pubkey->keylabel);
1732 pubkey->keylabel = NULL;
1740 pubkey->keyp = NULL;
4862 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL;
4873 pubkey = kmf_get_attr_ptr(KMF_PUBKEY_HANDLE_ATTR, attrlist, numattr);
4874 if (pubkey != NULL)
4942 } else if (pubkey != NULL && pubkey->keyp != NULL) {
4943 if (pubkey->keyalg == KMF_RSA ||
4944 pubkey->keyalg == KMF_DSA) {
4945 pkey = (EVP_PKEY *)pubkey->keyp;
4950 if (rv == KMF_OK && pubkey->keylabel == NULL) {
4951 pubkey->keylabel = strdup(fullpath);
4952 if (pubkey->keylabel == NULL)