Searched refs:prikey (Results 1 - 11 of 11) sorted by relevance

/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.h43 CK_RV soft_dh_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey);
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),
154 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ?
176 if ((rv = soft_genDHkey_set_attribute(prikey, CKA_VALUE, private_x,
182 if ((rv = soft_genDHkey_set_attribute(prikey, CKA_PRIME, prime,
188 if ((rv = soft_genDHkey_set_attribute(prikey, CKA_BASE, base,
194 OBJ_PRI_DH_VAL_BITS(prikey) = k.x_len_bits;
H A DsoftDSA.h51 CK_RV soft_dsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey);
H A DsoftEC.h46 extern CK_RV soft_ec_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey);
H A DsoftRSA.h49 CK_RV soft_rsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey);
H A DsoftRSA.c825 soft_rsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument
847 if ((pubkey == NULL) || (prikey == NULL)) {
885 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ?
917 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_MODULUS,
922 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PRIVATE_EXPONENT,
927 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PUBLIC_EXPONENT,
932 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PRIME_1,
937 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_PRIME_2,
942 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_EXPONENT_1,
947 if ((rv = soft_genRSAkey_set_attribute(prikey, CKA_EXPONENT_
[all...]
H A DsoftDSA.c517 * passed in parameters pubkey and prikey.
520 soft_dsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument
535 if ((pubkey == NULL) || (prikey == NULL)) {
566 k.rfunc = (IS_TOKEN_OBJECT(pubkey) || IS_TOKEN_OBJECT(prikey)) ?
587 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_PRIME,
592 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_SUBPRIME, subprime,
597 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_BASE,
602 if ((rv = soft_genDSAkey_set_attribute(prikey, CKA_VALUE, privalue,
H A DsoftEC.c150 soft_ec_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) argument
165 if ((prikey->class != CKO_PRIVATE_KEY) ||
166 (prikey->key_type != CKK_EC))
179 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template);
203 soft_genECkey_set_attribute(prikey, &bi, CKA_VALUE);
/osnet-11/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;
/osnet-11/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c4914 KMF_KEY_HANDLE *pubkey = NULL, *prikey = NULL; local
4929 prikey = kmf_get_attr_ptr(KMF_PRIVKEY_HANDLE_ATTR, attrlist, numattr);
4930 if (prikey != NULL)
4980 if (prikey != NULL && prikey->keyp != NULL) {
4981 if (prikey->keyalg == KMF_RSA ||
4982 prikey->keyalg == KMF_DSA) {
4983 pkey = (EVP_PKEY *)prikey->keyp;
4988 if (rv == KMF_OK && prikey->keylabel == NULL) {
4989 prikey
[all...]
/osnet-11/usr/src/lib/libkmf/libkmf/common/
H A Dcertop.c1187 KMF_KEY_HANDLE prikey; local
1240 &new_numattr, &prikey, cert);
1264 plugin = FindPlugin(handle, prikey.kstype);
1268 &prikey, &spki_ptr->algorithm.algorithm,
1278 kmf_free_kmf_key(handle, &prikey);

Completed in 41 milliseconds