Searched refs:secret_key (Results 1 – 7 of 7) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeysUtil.c | 157 soft_object_t *secret_key; in soft_genkey() local 259 rv = soft_gen_keyobject(pTemplate, ulCount, &secret_key, session_p, in soft_genkey() 272 keylen = OBJ_SEC_VALUE_LEN(secret_key) = DES_KEYSIZE; in soft_genkey() 281 keylen = OBJ_SEC_VALUE_LEN(secret_key) = DES2_KEYSIZE; in soft_genkey() 290 keylen = OBJ_SEC_VALUE_LEN(secret_key) = DES3_KEYSIZE; in soft_genkey() 296 secret_key->bool_attr_mask |= DERIVE_BOOL_ON; in soft_genkey() 303 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_genkey() 313 OBJ_SEC_VALUE_LEN(secret_key) = DES_KEYSIZE; in soft_genkey() 316 OBJ_SEC_VALUE_LEN(secret_key) = DES3_KEYSIZE; in soft_genkey() 320 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_genkey() [all …]
|
H A D | softSSL.c | 979 soft_object_t *secret_key; in soft_add_derived_key() local 981 if ((secret_key = calloc(1, sizeof (soft_object_t))) == NULL) { in soft_add_derived_key() 985 if (((rv = soft_build_secret_key_object(tmpl, attrcount, secret_key, in soft_add_derived_key() 987 ((rv = soft_pin_expired_check(secret_key)) != CKR_OK) || in soft_add_derived_key() 988 ((rv = soft_object_write_access_check(sp, secret_key)) != CKR_OK)) { in soft_add_derived_key() 990 free(secret_key); in soft_add_derived_key() 995 soft_derive_enforce_flags(basekey_p, secret_key); in soft_add_derived_key() 998 (void) pthread_mutex_init(&secret_key->object_mutex, NULL); in soft_add_derived_key() 999 secret_key->magic_marker = SOFTTOKEN_OBJECT_MAGIC; in soft_add_derived_key() 1002 if (IS_TOKEN_OBJECT(secret_key)) { in soft_add_derived_key() [all …]
|
H A D | softKeystore.c | 1742 objp->object_class_u.secret_key = sck; in soft_unpack_object() 2006 soft_object_t *secret_key; in soft_gen_crypt_key() local 2064 rv = soft_gen_keyobject(tmpl, attrs, &secret_key, &token_session, in soft_gen_crypt_key() 2071 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_gen_crypt_key() 2072 if ((OBJ_SEC_VALUE(secret_key) = malloc(keylen)) == NULL) { in soft_gen_crypt_key() 2073 soft_delete_object(&token_session, secret_key, in soft_gen_crypt_key() 2079 secret_key); in soft_gen_crypt_key() 2082 soft_delete_object(&token_session, secret_key, in soft_gen_crypt_key() 2085 *key = secret_key; in soft_gen_crypt_key() 2128 soft_object_t *secret_key; in soft_gen_hmac_key() local [all …]
|
H A D | softObject.h | 323 secret_key_obj_t *secret_key; member 666 ((o)->object_class_u.secret_key) 668 ((o)->object_class_u.secret_key->sk_value) 670 ((o)->object_class_u.secret_key->sk_value_len) 672 ((o)->object_class_u.secret_key->key_sched) 674 ((o)->object_class_u.secret_key->keysched_len)
|
H A D | softAttributeUtil.c | 2536 new_object->object_class_u.secret_key = sck;
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelObject.h | 209 secret_key_obj_t *secret_key; member 257 (o->object_class_u.secret_key) 259 (o->object_class_u.secret_key->sk_value) 261 (o->object_class_u.secret_key->sk_value_len)
|
H A D | kernelAttributeUtil.c | 1868 new_object->object_class_u.secret_key = sck; in kernel_build_secret_key_object()
|