Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.c88 soft_dh_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_dh_genkey_pair() argument
101 if ((pubkey->class != CKO_PUBLIC_KEY) || in soft_dh_genkey_pair()
102 (pubkey->key_type != CKK_DH)) { in soft_dh_genkey_pair()
137 rv = soft_get_public_value(pubkey, CKA_PRIME, prime, &prime_len); in soft_dh_genkey_pair()
142 rv = soft_get_public_value(pubkey, CKA_BASE, base, &base_len); in soft_dh_genkey_pair()
153 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ? in soft_dh_genkey_pair()
169 if ((rv = soft_genDHkey_set_attribute(pubkey, CKA_VALUE, public_y, in soft_dh_genkey_pair()
H A DsoftDSA.c464 soft_dsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_dsa_genkey_pair() argument
479 if ((pubkey == NULL) || (prikey == NULL)) { in soft_dsa_genkey_pair()
484 rv = soft_get_public_value(pubkey, CKA_PRIME, prime, &prime_len); in soft_dsa_genkey_pair()
490 rv = soft_get_public_value(pubkey, CKA_SUBPRIME, subprime, in soft_dsa_genkey_pair()
497 rv = soft_get_public_value(pubkey, CKA_BASE, base, &base_len); in soft_dsa_genkey_pair()
510 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ? in soft_dsa_genkey_pair()
526 if ((rv = soft_genDSAkey_set_attribute(pubkey, CKA_VALUE, in soft_dsa_genkey_pair()
H A DsoftEC.c147 soft_ec_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_ec_genkey_pair() argument
158 if ((pubkey->class != CKO_PUBLIC_KEY) || in soft_ec_genkey_pair()
159 (pubkey->key_type != CKK_EC)) in soft_ec_genkey_pair()
169 rv = soft_get_public_key_attribute(pubkey, &template); in soft_ec_genkey_pair()
204 soft_genECkey_set_attribute(pubkey, &bi, CKA_EC_POINT); in soft_ec_genkey_pair()
H A DsoftRSA.c822 soft_rsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_rsa_genkey_pair() argument
844 if ((pubkey == NULL) || (prikey == NULL)) { in soft_rsa_genkey_pair()
854 rv = get_ulong_attr_from_object(OBJ_PUB_RSA_MOD_BITS(pubkey), in soft_rsa_genkey_pair()
870 rv = soft_get_public_value(pubkey, CKA_PUBLIC_EXPONENT, pub_expo, in soft_rsa_genkey_pair()
882 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ? in soft_rsa_genkey_pair()
909 if ((rv = soft_genRSAkey_set_attribute(pubkey, CKA_MODULUS, in soft_rsa_genkey_pair()
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Ddst_api.c324 DST_KEY *dg_key = NULL, *pubkey = NULL; in dst_read_key() local
343 if ((pubkey = dst_s_read_public_key(keyname, in_id, in_alg)) == NULL) in dst_read_key()
347 return pubkey; in dst_read_key()
349 if (!(dg_key = dst_s_get_key_struct(keyname, pubkey->dk_alg, in dst_read_key()
350 pubkey->dk_flags, pubkey->dk_proto, in dst_read_key()
354 if (dst_s_read_private_key_file(keyname, dg_key, pubkey->dk_id, in dst_read_key()
355 pubkey->dk_alg) == 0) in dst_read_key()
358 (void)dst_free_key(pubkey); in dst_read_key()
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c1365 RSA_free(pubkey); in OpenSSL_EncodePubKeyData()
1373 DSA_free(pubkey); in OpenSSL_EncodePubKeyData()
1493 if (pubkey == NULL) { in OpenSSL_CreateKeypair()
1569 pubkey->israw = FALSE; in OpenSSL_CreateKeypair()
1619 pubkey->keyalg = KMF_DSA; in OpenSSL_CreateKeypair()
1621 pubkey->israw = FALSE; in OpenSSL_CreateKeypair()
1690 if (pubkey->keylabel) { in OpenSSL_CreateKeypair()
1691 free(pubkey->keylabel); in OpenSSL_CreateKeypair()
1700 pubkey->keyp = NULL; in OpenSSL_CreateKeypair()
4892 if (pubkey != NULL) in OpenSSL_StoreKey()
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/
H A Dnss_spi.c826 KMF_KEY_HANDLE *pubkey = NULL; in NSS_CreateKeypair() local
866 if (pubkey == NULL || privkey == NULL) in NSS_CreateKeypair()
869 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE)); in NSS_CreateKeypair()
980 pubkey->kstype = KMF_KEYSTORE_NSS; in NSS_CreateKeypair()
981 pubkey->keyalg = keytype; in NSS_CreateKeypair()
982 pubkey->keyp = (void *)NSSpubkey; in NSS_CreateKeypair()
983 pubkey->keyclass = KMF_ASYM_PUB; in NSS_CreateKeypair()
996 pubkey->keyp = NULL; in NSS_CreateKeypair()
2149 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL; in NSS_StoreKey() local
2176 if (pubkey == NULL) { in NSS_StoreKey()
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c1697 if (pubkey == NULL) in KMFPK11_CreateKeypair()
1735 pubkey->keyalg = KMF_RSA; in KMFPK11_CreateKeypair()
1737 pubkey->keyp = (void *)pubKey; in KMFPK11_CreateKeypair()
1781 pubkey->keyalg = KMF_DSA; in KMFPK11_CreateKeypair()
1783 pubkey->keyp = (void *)pubKey; in KMFPK11_CreateKeypair()
1832 pubkey->keyalg = KMF_ECDSA; in KMFPK11_CreateKeypair()
1834 pubkey->keyp = (void *)pubKey; in KMFPK11_CreateKeypair()
1878 if (pubkey->keylabel == NULL) { in KMFPK11_CreateKeypair()
1936 if (pubkey->keylabel) in KMFPK11_CreateKeypair()
1937 free(pubkey->keylabel); in KMFPK11_CreateKeypair()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_sldap.h438 char *pubkey; member
H A Dns_writes.c2951 if (ptr->name == NULL || *ptr->name == '\0' || ptr->pubkey == NULL || in __s_cvt_publickey()
2972 rc = __s_add_attr(e, "nisPublickey", ptr->pubkey); in __s_cvt_publickey()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dhchap.c5930 void *pubkey, in emlxs_BIGNUM_pubkey() argument
6023 bignum2bytestring(pubkey, &result, in emlxs_BIGNUM_pubkey()
6070 uint8_t pubkey[512]; in emlxs_hash_Cai() local
6108 bcopy((void *)pubkey, in emlxs_hash_Cai()
6113 bcopy((void *)pubkey, in emlxs_hash_Cai()
6119 bcopy((void *)pubkey, in emlxs_hash_Cai()
6125 MD5Update(&mdctx, (unsigned char *)pubkey, pubkey_len); in emlxs_hash_Cai()
6154 bcopy((void *)pubkey, in emlxs_hash_Cai()
6160 bcopy((void *)pubkey, in emlxs_hash_Cai()
6166 bcopy((void *)pubkey, in emlxs_hash_Cai()
[all …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dsetkey.c1639 pk_get_conv_key(uid, pubkey, result) in pk_get_conv_key() argument
1641 keybuf pubkey;
1662 memcpy(xpublic, pubkey, sizeof (keybuf));
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dcertop.c1081 KMF_X509_SPKI *pubkey; in kmf_encrypt() local
1132 pubkey = &x509cert->certificate.subjectPublicKeyInfo; in kmf_encrypt()
1135 alg = &pubkey->algorithm.algorithm; in kmf_encrypt()
1156 ret = PKCS_EncryptData(handle, algid, pubkey, plaintext, ciphertext); in kmf_encrypt()
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c2388 data.pubkey = tmppubkey; in genent_publickey()
2419 free(data.pubkey); in genent_publickey()