Searched refs:cmk (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.6.0/components/wpa_supplicant/src/eap_peer/ |
D | eap_peap.c | 66 u8 cmk[20]; member 272 os_memcpy(data->cmk, tk + 40, 20); in eap_peap_derive_cmk() 274 data->cmk, 20); in eap_peap_derive_cmk() 299 os_memcpy(data->cmk, imck + 40, 20); in eap_peap_derive_cmk() 300 wpa_hexdump_key(MSG_DEBUG, "EAP-PEAP: CMK (CMKj)", data->cmk, 20); in eap_peap_derive_cmk() 335 wpa_hexdump(MSG_MSGDUMP, "EAP-PEAP: Compound_MAC CMK", data->cmk, 20); in eap_tlv_add_cryptobinding() 340 hmac_sha1_vector(data->cmk, 20, 2, addr, len, mac); in eap_tlv_add_cryptobinding() 435 hmac_sha1(data->cmk, 20, buf, sizeof(buf), mac); in eap_tlv_validate_cryptobinding()
|
D | eap_fast.c | 622 struct eap_tlv_crypto_binding_tlv *_bind, const u8 *cmk) in eap_fast_write_crypto_binding() argument 633 hmac_sha1(cmk, EAP_FAST_CMK_LEN, (u8 *) rbind, sizeof(*rbind), in eap_fast_write_crypto_binding() 694 u8 *cmk) in eap_fast_get_cmk() argument 720 os_memcpy(cmk, imck + EAP_FAST_SIMCK_LEN, EAP_FAST_CMK_LEN); in eap_fast_get_cmk() 722 cmk, EAP_FAST_CMK_LEN); in eap_fast_get_cmk() 759 u8 cmk[EAP_FAST_CMK_LEN], cmac[SHA1_MAC_LEN]; in eap_fast_process_crypto_binding() local 766 if (eap_fast_get_cmk(sm, data, cmk) < 0) in eap_fast_process_crypto_binding() 774 hmac_sha1(cmk, EAP_FAST_CMK_LEN, (u8 *) _bind, bind_len, in eap_fast_process_crypto_binding() 824 pos, _bind, cmk); in eap_fast_process_crypto_binding()
|