Home
last modified time | relevance | path

Searched refs:hmac_key (Results 1 – 5 of 5) sorted by relevance

/titanic_44/usr/src/cmd/cmd-inet/usr.lib/wanboot/hmac/
H A Dhmac.c57 hash_gen(int in_fd, const wbku_key_attr_t *ka, const uint8_t *hmac_key) in hash_gen() argument
67 HMACInit(&ctx, hmac_key, ka->ka_len); in hash_gen()
83 HMACFinal(&ctx, hmac_key, ka->ka_len, digest); in hash_gen()
120 uint8_t hmac_key[WANBOOT_HMAC_KEY_SIZE]; in main() local
218 wbkuret = wbku_find_key(key_fp, NULL, &ka, hmac_key, B_FALSE); in main()
223 ret = hash_gen(in_fd, &ka, hmac_key); in main()
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeysUtil.c1170 soft_object_t *hmac_key, in do_prf() argument
1200 rv = soft_sign_init(session_p, &digest_mech, hmac_key); in do_prf()
1306 soft_object_t *hmac_key = NULL; in soft_generate_pkcs5_pbkdf2_key() local
1331 hmac_key = (soft_object_t *)phKey; in soft_generate_pkcs5_pbkdf2_key()
1337 (void) soft_delete_object(session_p, hmac_key, B_FALSE, in soft_generate_pkcs5_pbkdf2_key()
1354 (void) soft_delete_object(session_p, hmac_key, B_FALSE, in soft_generate_pkcs5_pbkdf2_key()
1396 rv = do_prf(session_p, params, hmac_key, in soft_generate_pkcs5_pbkdf2_key()
1402 (void) soft_delete_object(session_p, hmac_key, B_FALSE, B_FALSE); in soft_generate_pkcs5_pbkdf2_key()
H A DsoftKeystoreUtil.c156 static soft_object_t *hmac_key = NULL; variable
1724 (void) soft_cleanup_object(hmac_key); in soft_keystore_setpin()
1729 hmac_key = new_hmac_key; in soft_keystore_setpin()
1750 (void) soft_cleanup_object(hmac_key); in soft_keystore_setpin()
1752 hmac_key = NULL; in soft_keystore_setpin()
1847 if (soft_gen_hmac_key(pin, &hmac_key, (CK_BYTE **)&hmac_salt) in soft_keystore_authpin()
2088 if (soft_keystore_hmac(hmac_key, B_FALSE, buf, in soft_keystore_get_single_obj()
2360 if (soft_keystore_hmac(hmac_key, B_TRUE, encrypted_buf, in soft_keystore_put_new_obj()
2609 if (soft_keystore_hmac(hmac_key, B_TRUE, encrypted_buf, in soft_keystore_modify_obj()
/titanic_44/usr/src/uts/common/inet/kssl/
H A Dksslproto.h271 crypto_key_t hmac_key; /* for TLS */ member
H A Dksslrec.c241 rv = crypto_mac(&spec->hmac_mech, &dd, &spec->hmac_key, in kssl_compute_record_mac()
1542 spec->hmac_key.ck_format = CRYPTO_KEY_RAW; in kssl_spec_init()
1543 spec->hmac_key.ck_data = ssl->mac_secret[dir]; in kssl_spec_init()
1544 spec->hmac_key.ck_length = spec->mac_hashsz * 8; in kssl_spec_init()
1561 spec->hmac_key.ck_format = CRYPTO_KEY_RAW; in kssl_spec_init()
1562 spec->hmac_key.ck_data = ssl->mac_secret[dir]; in kssl_spec_init()
1563 spec->hmac_key.ck_length = spec->mac_hashsz * 8; in kssl_spec_init()