Home
last modified time | relevance | path

Searched refs:mac_key (Results 1 – 8 of 8) sorted by relevance

/freebsd-12.1/crypto/openssl/crypto/kdf/
H A Dtls1_prf.c182 EVP_PKEY *mac_key = NULL; in tls1_prf_P_hash() local
197 mac_key = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, NULL, sec, sec_len); in tls1_prf_P_hash()
198 if (mac_key == NULL) in tls1_prf_P_hash()
200 if (!EVP_DigestSignInit(ctx_init, NULL, md, NULL, mac_key)) in tls1_prf_P_hash()
239 EVP_PKEY_free(mac_key); in tls1_prf_P_hash()
/freebsd-12.1/crypto/openssl/crypto/evp/
H A Dpmeth_gn.c157 EVP_PKEY *mac_key = NULL; in EVP_PKEY_new_mac_key() local
165 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
169 return mac_key; in EVP_PKEY_new_mac_key()
/freebsd-12.1/contrib/bearssl/src/ssl/
H A Dssl_rec_cbc.c32 const void *mac_key, size_t mac_key_len, size_t mac_out_len, in in_cbc_init() argument
38 br_hmac_key_init(&cc->mac, dig_impl, mac_key, mac_key_len); in in_cbc_init()
272 const void *mac_key, size_t mac_key_len, size_t mac_out_len, in out_cbc_init() argument
278 br_hmac_key_init(&cc->mac, dig_impl, mac_key, mac_key_len); in out_cbc_init()
H A Dssl_engine.c1364 unsigned char *cipher_key, *mac_key, *iv; in br_ssl_engine_switch_cbc_in() local
1383 mac_key = &kb[mac_key_len]; in br_ssl_engine_switch_cbc_in()
1387 mac_key = &kb[0]; in br_ssl_engine_switch_cbc_in()
1396 imh, mac_key, mac_key_len, mac_out_len, iv); in br_ssl_engine_switch_cbc_in()
1407 unsigned char *cipher_key, *mac_key, *iv; in br_ssl_engine_switch_cbc_out() local
1426 mac_key = &kb[0]; in br_ssl_engine_switch_cbc_out()
1430 mac_key = &kb[mac_key_len]; in br_ssl_engine_switch_cbc_out()
1439 imh, mac_key, mac_key_len, mac_out_len, iv); in br_ssl_engine_switch_cbc_out()
/freebsd-12.1/crypto/openssl/ssl/
H A Dt1_enc.c94 EVP_PKEY *mac_key; in tls1_change_cipher_state() local
256 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, mac_secret, in tls1_change_cipher_state()
258 if (mac_key == NULL in tls1_change_cipher_state()
259 || EVP_DigestSignInit(mac_ctx, NULL, m, NULL, mac_key) <= 0) { in tls1_change_cipher_state()
260 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
265 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
/freebsd-12.1/contrib/bearssl/inc/
H A Dbearssl_ssl.h393 const void *mac_key, size_t mac_key_len, size_t mac_out_len,
432 const void *mac_key, size_t mac_key_len, size_t mac_out_len,
/freebsd-12.1/sys/dev/bwn/
H A Dif_bwnvar.h967 struct bwn_key mac_key[58]; member
H A Dif_bwn.c3608 mac->mac_key[i].keyconf = NULL; in bwn_clear_keys()
3618 KASSERT(mac->mac_max_nr_keys <= N(mac->mac_key), in bwn_crypt_init()
4724 mac->mac_key[index].algorithm = algorithm; in bwn_key_dowrite()