Lines Matching defs:secret_key
973 soft_object_t *secret_key;
975 if ((secret_key = calloc(1, sizeof (soft_object_t))) == NULL) {
979 if (((rv = soft_build_secret_key_object(tmpl, attrcount, secret_key,
981 ((rv = soft_pin_expired_check(secret_key)) != CKR_OK) ||
982 ((rv = soft_object_write_access_check(sp, secret_key)) != CKR_OK)) {
984 free(secret_key);
989 soft_derive_enforce_flags(basekey_p, secret_key);
992 (void) pthread_mutex_init(&secret_key->object_mutex, NULL);
993 secret_key->magic_marker = SOFTTOKEN_OBJECT_MAGIC;
996 if (IS_TOKEN_OBJECT(secret_key)) {
997 secret_key->session_handle = (CK_SESSION_HANDLE)NULL;
998 soft_add_token_object_to_slot(secret_key);
999 rv = soft_put_object_to_keystore(secret_key);
1001 soft_delete_token_object(secret_key, B_FALSE, B_FALSE);
1004 *phKey = (CK_OBJECT_HANDLE)secret_key;
1010 soft_add_object_to_session(secret_key, sp);
1011 secret_key->session_handle = (CK_SESSION_HANDLE)sp;
1013 *phKey = (CK_OBJECT_HANDLE)secret_key;