Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/util/
H A Dmk-fipsmodule-cnf.pl31 my $mac_key;
35 GetOptions("key=s" => \$mac_key,
40 my $mac_keylen = length($mac_key);
52 = ( uc(hmac_sha256_hex($data, pack("H$mac_keylen", $mac_key))) =~ m/../g );
/freebsd/crypto/openssl/ssl/record/methods/
H A Dtls1_meth.c30 EVP_PKEY *mac_key; in tls1_set_crypto_state() local
64 mac_key = EVP_PKEY_new_raw_private_key_ex(rl->libctx, "HMAC", in tls1_set_crypto_state()
73 mac_key = EVP_PKEY_new_mac_key(mactype, NULL, mackey, in tls1_set_crypto_state()
76 if (mac_key == NULL in tls1_set_crypto_state()
78 rl->libctx, rl->propq, mac_key, in tls1_set_crypto_state()
81 EVP_PKEY_free(mac_key); in tls1_set_crypto_state()
85 EVP_PKEY_free(mac_key); in tls1_set_crypto_state()
H A Dktls_meth.c78 unsigned char *mac_key, size_t mac_secret_size) in ktls_configure_crypto() argument
105 crypto_info->auth_key = mac_key; in ktls_configure_crypto()
176 unsigned char *mac_key, size_t mac_secret_size) in ktls_configure_crypto() argument
/freebsd/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.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/crypto/openssl/crypto/evp/
H A Dpmeth_gn.c317 EVP_PKEY *mac_key = NULL; in EVP_PKEY_new_mac_key() local
325 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
329 return mac_key; in EVP_PKEY_new_mac_key()
/freebsd/crypto/openssl/test/
H A Dbad_dtls_test.c59 #define mac_key (key_block + 20) macro
512 if (!EVP_MAC_init(ctx, mac_key, 20, params) in send_record()
H A Devp_test.c902 unsigned char *mac_key; member
996 OPENSSL_free(cdat->mac_key); in cipher_test_cleanup()
1055 return parse_bin(value, &cdat->mac_key, &cdat->mac_key_len); in cipher_test_parse()
1260 if (expected->mac_key != NULL in cipher_test_enc()
1263 (void *)expected->mac_key) in cipher_test_enc()
/freebsd/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/sys/dev/bwn/
H A Dif_bwnvar.h964 struct bwn_key mac_key[58]; member
H A Dif_bwn.c3604 mac->mac_key[i].keyconf = NULL; in bwn_clear_keys()
3614 KASSERT(mac->mac_max_nr_keys <= N(mac->mac_key), in bwn_crypt_init()
4720 mac->mac_key[index].algorithm = algorithm; in bwn_key_dowrite()