| /freebsd-13.1/crypto/openssl/crypto/kdf/ |
| H A D | tls1_prf.c | 182 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.1/sys/contrib/openzfs/include/sys/crypto/ |
| H A D | api.h | 214 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.1/crypto/openssl/crypto/evp/ |
| H A D | pmeth_gn.c | 157 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.1/contrib/bearssl/src/ssl/ |
| H A D | ssl_rec_cbc.c | 32 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 D | ssl_engine.c | 1364 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-13.1/crypto/openssl/ssl/ |
| H A D | ktls.c | 65 unsigned char *key, unsigned char *mac_key, in ktls_configure_crypto() argument 101 crypto_info->auth_key = mac_key; in ktls_configure_crypto() 169 unsigned char *key, unsigned char *mac_key, in ktls_configure_crypto() argument
|
| H A D | t1_enc.c | 133 EVP_PKEY *mac_key; in tls1_change_cipher_state() local 305 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, mac_secret, in tls1_change_cipher_state() 307 if (mac_key == NULL in tls1_change_cipher_state() 308 || EVP_DigestSignInit(mac_ctx, NULL, m, NULL, mac_key) <= 0) { in tls1_change_cipher_state() 309 EVP_PKEY_free(mac_key); in tls1_change_cipher_state() 314 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
|
| H A D | ssl_local.h | 2629 unsigned char *key, unsigned char *mac_key,
|
| /freebsd-13.1/sys/contrib/openzfs/module/icp/include/sys/crypto/ |
| H A D | impl.h | 881 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.1/contrib/bearssl/inc/ |
| H A D | bearssl_ssl.h | 393 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.1/sys/dev/bwn/ |
| H A D | if_bwnvar.h | 966 struct bwn_key mac_key[58]; member
|
| H A D | if_bwn.c | 3614 mac->mac_key[i].keyconf = NULL; in bwn_clear_keys() 3624 KASSERT(mac->mac_max_nr_keys <= N(mac->mac_key), in bwn_crypt_init() 4730 mac->mac_key[index].algorithm = algorithm; in bwn_key_dowrite()
|