Home
last modified time | relevance | path

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

/freebsd-13-stable/crypto/openssl/crypto/kdf/
HDtls1_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-13-stable/sys/contrib/openzfs/include/sys/crypto/
HDapi.h214 crypto_key_t *encr_key, crypto_key_t *mac_key,
224 crypto_key_t *mac_key, crypto_ctx_template_t encr_tmpl,
241 crypto_key_t *mac_key, crypto_key_t *decr_key,
246 crypto_dual_data_t *ct, crypto_key_t *mac_key, crypto_key_t *decr_key,
251 crypto_key_t *mac_key, crypto_key_t *decr_key,
257 crypto_key_t *mac_key, crypto_key_t *decr_key,
261 crypto_mechanism_t *decr_mech, crypto_key_t *mac_key,
267 crypto_mechanism_t *decr_mech, crypto_key_t *mac_key,
/freebsd-13-stable/crypto/openssl/crypto/evp/
HDpmeth_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-13-stable/contrib/bearssl/src/ssl/
HDssl_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()
HDssl_engine.c1379 unsigned char *cipher_key, *mac_key, *iv; in br_ssl_engine_switch_cbc_in() local
1398 mac_key = &kb[mac_key_len]; in br_ssl_engine_switch_cbc_in()
1402 mac_key = &kb[0]; in br_ssl_engine_switch_cbc_in()
1411 imh, mac_key, mac_key_len, mac_out_len, iv); in br_ssl_engine_switch_cbc_in()
1422 unsigned char *cipher_key, *mac_key, *iv; in br_ssl_engine_switch_cbc_out() local
1441 mac_key = &kb[0]; in br_ssl_engine_switch_cbc_out()
1445 mac_key = &kb[mac_key_len]; in br_ssl_engine_switch_cbc_out()
1454 imh, mac_key, mac_key_len, mac_out_len, iv); in br_ssl_engine_switch_cbc_out()
/freebsd-13-stable/crypto/openssl/ssl/
HDktls.c126 unsigned char *key, unsigned char *mac_key, in ktls_configure_crypto() argument
162 crypto_info->auth_key = mac_key; in ktls_configure_crypto()
230 unsigned char *key, unsigned char *mac_key, in ktls_configure_crypto() argument
HDt1_enc.c98 EVP_PKEY *mac_key; in tls1_change_cipher_state() local
265 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, mac_secret, in tls1_change_cipher_state()
267 if (mac_key == NULL in tls1_change_cipher_state()
268 || EVP_DigestSignInit(mac_ctx, NULL, m, NULL, mac_key) <= 0) { in tls1_change_cipher_state()
269 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
274 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
HDssl_local.h2630 unsigned char *key, unsigned char *mac_key,
/freebsd-13-stable/sys/contrib/openzfs/module/icp/include/sys/crypto/
HDimpl.h881 mac_key, encr_ctx_template, mac_ctx_template, req) ( \ argument
885 ctx, encr_mech, encr_key, mac_mech, mac_key, encr_ctx_template, \
911 mac_mech, mac_key, plaintext, ciphertext, mac, \ argument
917 mac_mech, mac_key, plaintext, ciphertext, mac, \
921 #define KCF_PROV_MAC_DECRYPT_INIT(pd, ctx, mac_mech, mac_key, decr_mech, \ argument
926 ctx, mac_mech, mac_key, decr_mech, decr_key, mac_ctx_template, \
951 #define KCF_PROV_MAC_DECRYPT_ATOMIC(pd, session, mac_mech, mac_key, \ argument
957 (pd)->pd_prov_handle, session, mac_mech, mac_key, \
962 #define KCF_PROV_MAC_VERIFY_DECRYPT_ATOMIC(pd, session, mac_mech, mac_key, \ argument
969 (pd)->pd_prov_handle, session, mac_mech, mac_key, \
/freebsd-13-stable/contrib/bearssl/inc/
HDbearssl_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-13-stable/sys/dev/bwn/
HDif_bwnvar.h964 struct bwn_key mac_key[58]; member
HDif_bwn.c3610 mac->mac_key[i].keyconf = NULL; in bwn_clear_keys()
3620 KASSERT(mac->mac_max_nr_keys <= N(mac->mac_key), in bwn_crypt_init()
4726 mac->mac_key[index].algorithm = algorithm; in bwn_key_dowrite()