Home
last modified time | relevance | path

Searched refs:secret_key (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeysUtil.c158 soft_object_t *secret_key; in soft_genkey() local
268 secret_key = (soft_object_t *)*phKey; in soft_genkey()
276 keylen = OBJ_SEC_VALUE_LEN(secret_key) = DES_KEYSIZE; in soft_genkey()
285 keylen = OBJ_SEC_VALUE_LEN(secret_key) = DES2_KEYSIZE; in soft_genkey()
294 keylen = OBJ_SEC_VALUE_LEN(secret_key) = DES3_KEYSIZE; in soft_genkey()
300 secret_key->bool_attr_mask |= DERIVE_BOOL_ON; in soft_genkey()
307 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_genkey()
317 OBJ_SEC_VALUE_LEN(secret_key) = DES_KEYSIZE; in soft_genkey()
320 OBJ_SEC_VALUE_LEN(secret_key) = DES3_KEYSIZE; in soft_genkey()
324 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_genkey()
[all …]
H A DsoftSSL.c973 soft_object_t *secret_key; in soft_add_derived_key() local
975 if ((secret_key = calloc(1, sizeof (soft_object_t))) == NULL) { in soft_add_derived_key()
979 if (((rv = soft_build_secret_key_object(tmpl, attrcount, secret_key, in soft_add_derived_key()
981 ((rv = soft_pin_expired_check(secret_key)) != CKR_OK) || in soft_add_derived_key()
982 ((rv = soft_object_write_access_check(sp, secret_key)) != CKR_OK)) { in soft_add_derived_key()
984 free(secret_key); in soft_add_derived_key()
989 soft_derive_enforce_flags(basekey_p, secret_key); in soft_add_derived_key()
992 (void) pthread_mutex_init(&secret_key->object_mutex, NULL); in soft_add_derived_key()
993 secret_key->magic_marker = SOFTTOKEN_OBJECT_MAGIC; in soft_add_derived_key()
996 if (IS_TOKEN_OBJECT(secret_key)) { in soft_add_derived_key()
[all …]
H A DsoftKeystore.c1725 objp->object_class_u.secret_key = sck; in soft_unpack_object()
2000 soft_object_t *secret_key; in soft_gen_crypt_key() local
2067 secret_key = (soft_object_t *)hKey; in soft_gen_crypt_key()
2068 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_gen_crypt_key()
2069 if ((OBJ_SEC_VALUE(secret_key) = malloc(keylen)) == NULL) { in soft_gen_crypt_key()
2070 soft_delete_object(&token_session, secret_key, in soft_gen_crypt_key()
2076 secret_key); in soft_gen_crypt_key()
2079 soft_delete_object(&token_session, secret_key, in soft_gen_crypt_key()
2082 *key = secret_key; in soft_gen_crypt_key()
2125 soft_object_t *secret_key; in soft_gen_hmac_key() local
[all …]
H A DsoftObject.h319 secret_key_obj_t *secret_key; member
662 ((o)->object_class_u.secret_key)
664 ((o)->object_class_u.secret_key->sk_value)
666 ((o)->object_class_u.secret_key->sk_value_len)
668 ((o)->object_class_u.secret_key->key_sched)
670 ((o)->object_class_u.secret_key->keysched_len)
H A DsoftAttributeUtil.c2547 new_object->object_class_u.secret_key = sck;
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelObject.h209 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 DkernelAttributeUtil.c1868 new_object->object_class_u.secret_key = sck; in kernel_build_secret_key_object()