Searched refs:prikey (Results 1 - 7 of 7) 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) argument
106 if ((prikey->class != CKO_PRIVATE_KEY) ||
107 (prikey->key_type != CKK_DH)) {
117 rv = get_ulong_attr_from_object(OBJ_PRI_DH_VAL_BITS(prikey),
153 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ?
175 if ((rv = soft_genDHkey_set_attribute(prikey, CKA_VALUE, private_x,
181 if ((rv = soft_genDHkey_set_attribute(prikey, CKA_PRIME, prime,
187 if ((rv = soft_genDHkey_set_attribute(prikey, CKA_BASE, base,
193 OBJ_PRI_DH_VAL_BITS(prikey) = k.value_bits;
H A DsoftDSA.c464 soft_dsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument
479 if ((pubkey == NULL) || (prikey == NULL)) {
510 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ?
531 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_PRIME,
536 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_SUBPRIME, subprime,
541 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_BASE,
546 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_VALUE, privalue,
H A DsoftRSA.c822 soft_rsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument
844 if ((pubkey == NULL) || (prikey == NULL)) {
882 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ?
914 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_MODULUS,
919 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PRIVATE_EXPONENT,
924 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PUBLIC_EXPONENT,
929 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PRIME_1,
934 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PRIME_2,
939 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_EXPONENT_1,
944 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_EXPONENT_
[all...]
H A DsoftEC.c147 soft_ec_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument
162 if ((prikey->class != CKO_PRIVATE_KEY) ||
163 (prikey->key_type != CKK_EC))
176 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template);
200 soft_genECkey_set_attribute(prikey, &bi, CKA_VALUE);
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/
H A Dnss_spi.c2148 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL; local
2177 prikey = kmf_get_attr_ptr(KMF_PRIVKEY_HANDLE_ATTR, attrlist,
2179 if (prikey == NULL)
2186 if (pubkey == NULL && prikey == NULL && rawkey == NULL)
2260 } else if (prikey != NULL && prikey->kstype == KMF_KEYSTORE_NSS) {
2262 SECKEYPrivateKey *privKey = (SECKEYPrivateKey *) prikey->keyp;
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c4862 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL; local
4877 prikey = kmf_get_attr_ptr(KMF_PRIVKEY_HANDLE_ATTR, attrlist, numattr);
4878 if (prikey != NULL)
4928 if (prikey != NULL && prikey->keyp != NULL) {
4929 if (prikey->keyalg == KMF_RSA ||
4930 prikey->keyalg == KMF_DSA) {
4931 pkey = (EVP_PKEY *)prikey->keyp;
4936 if (rv == KMF_OK && prikey->keylabel == NULL) {
4937 prikey
[all...]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dcertop.c1184 KMF_KEY_HANDLE prikey; local
1237 &new_numattr, &prikey, cert);
1261 plugin = FindPlugin(handle, prikey.kstype);
1265 &prikey, &spki_ptr->algorithm.algorithm,
1275 kmf_free_kmf_key(handle, &prikey);

Completed in 97 milliseconds