/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softDH.c | 88 soft_dh_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument 101 if ((pubkey->class != CKO_PUBLIC_KEY) || 102 (pubkey->key_type != CKK_DH)) { 137 rv = soft_get_public_value(pubkey, CKA_PRIME, prime, &prime_len); 142 rv = soft_get_public_value(pubkey, CKA_BASE, base, &base_len); 153 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ? 169 if ((rv = soft_genDHkey_set_attribute(pubkey, CKA_VALUE, public_y,
|
H A D | softDSA.c | 464 soft_dsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument 479 if ((pubkey == NULL) || (prikey == NULL)) { 484 rv = soft_get_public_value(pubkey, CKA_PRIME, prime, &prime_len); 490 rv = soft_get_public_value(pubkey, CKA_SUBPRIME, subprime, 497 rv = soft_get_public_value(pubkey, CKA_BASE, base, &base_len); 510 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ? 526 if ((rv = soft_genDSAkey_set_attribute(pubkey, CKA_VALUE,
|
H A D | softEC.c | 147 soft_ec_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument 158 if ((pubkey->class != CKO_PUBLIC_KEY) || 159 (pubkey->key_type != CKK_EC)) 169 rv = soft_get_public_key_attribute(pubkey, &template); 204 soft_genECkey_set_attribute(pubkey, &bi, CKA_EC_POINT);
|
H A D | softRSA.c | 822 soft_rsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument 844 if ((pubkey == NULL) || (prikey == NULL)) { 854 rv = get_ulong_attr_from_object(OBJ_PUB_RSA_MOD_BITS(pubkey), 870 rv = soft_get_public_value(pubkey, CKA_PUBLIC_EXPONENT, pub_expo, 882 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ? 909 if ((rv = soft_genRSAkey_set_attribute(pubkey, CKA_MODULUS,
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | dst_api.c | 328 DST_KEY *dg_key = NULL, *pubkey = NULL; local 347 if ((pubkey = dst_s_read_public_key(keyname, in_id, in_alg)) == NULL) 351 return pubkey; 353 if (!(dg_key = dst_s_get_key_struct(keyname, pubkey->dk_alg, 354 pubkey->dk_flags, pubkey->dk_proto, 358 if (dst_s_read_private_key_file(keyname, dg_key, pubkey->dk_id, 359 pubkey->dk_alg) == 0) 362 (void)dst_free_key(pubkey);
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 1378 RSA *pubkey = EVP_PKEY_get1_RSA(key->keyp); local 1380 if (!(n = i2d_RSA_PUBKEY(pubkey, &keydata->Data))) { 1384 RSA_free(pubkey); 1386 DSA *pubkey = EVP_PKEY_get1_DSA(key->keyp); local 1388 if (!(n = i2d_DSA_PUBKEY(pubkey, &keydata->Data))) { 1392 DSA_free(pubkey); 1487 KMF_KEY_HANDLE *pubkey = NULL, *privkey = NULL; local 1506 pubkey = kmf_get_attr_ptr(KMF_PUBKEY_HANDLE_ATTR, attrlist, numattr); 1507 if (pubkey == NULL) 1514 (void) memset(pubkey, 4862 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL; local [all...] |
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 825 KMF_KEY_HANDLE *pubkey = NULL; local 863 pubkey = kmf_get_attr_ptr(KMF_PUBKEY_HANDLE_ATTR, attrlist, numattr); 865 if (pubkey == NULL || privkey == NULL) 868 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE)); 979 pubkey->kstype = KMF_KEYSTORE_NSS; 980 pubkey->keyalg = keytype; 981 pubkey->keyp = (void *)NSSpubkey; 982 pubkey->keyclass = KMF_ASYM_PUB; 983 pubkey->keylabel = PK11_GetPublicKeyNickname(NSSpubkey); 995 pubkey 2148 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL; local [all...] |
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 1659 KMF_KEY_HANDLE *pubkey, *privkey; local 1696 pubkey = kmf_get_attr_ptr(KMF_PUBKEY_HANDLE_ATTR, attlist, numattr); 1697 if (pubkey == NULL) 1704 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE)); 1734 pubkey->kstype = KMF_KEYSTORE_PK11TOKEN; 1735 pubkey->keyalg = KMF_RSA; 1736 pubkey->keyclass = KMF_ASYM_PUB; 1737 pubkey->keyp = (void *)pubKey; 1780 pubkey->kstype = KMF_KEYSTORE_PK11TOKEN; 1781 pubkey 2173 KMF_X509_SPKI *pubkey; local [all...] |
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_sldap.h | 437 char *pubkey; member in struct:_ns_pubkey
|
H A D | ns_writes.c | 2953 if (ptr->name == NULL || ptr->pubkey == '\0' || ptr->privkey == '\0') { 2973 rc = __s_add_attr(e, "nisPublickey", ptr->pubkey);
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_dhchap.c | 3042 * mod p) is the pubkey: all are ready and to go 5349 * g^y mod p is reserved in port_dhc as pubkey (public key).for 5421 * received from the remote entity (remote entity's pubkey) y: 5424 * shared secret) (g^y mod p): local entity's pubkey 5521 * This routine get the pubkey and session key. these pubkey and session 5751 "BIGNUM_get_pubkey: after pubkey cal: 0x%x 0x%x 0x%x", 5930 void *pubkey, 6023 bignum2bytestring(pubkey, &result, 6027 /* This pubkey i 5928 emlxs_BIGNUM_pubkey( emlxs_port_t *port, void *pubkey, uint8_t *dhval, uint32_t dhvallen, uint8_t *key, uint32_t key_size, uint32_t dhgp_id, uint32_t *pubkeylen) argument 6070 uint8_t pubkey[512]; local [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | setkey.c | 1641 pk_get_conv_key(uid, pubkey, result) 1643 keybuf pubkey; 1664 memcpy(xpublic, pubkey, sizeof (keybuf));
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | certop.c | 1028 * The keystore must extract the pubkey data because 1081 KMF_X509_SPKI *pubkey; local 1132 pubkey = &x509cert->certificate.subjectPublicKeyInfo; 1135 alg = &pubkey->algorithm.algorithm; 1156 ret = PKCS_EncryptData(handle, algid, pubkey, plaintext, ciphertext);
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 2386 data.pubkey = tmppubkey; 2417 free(data.pubkey);
|