Home
last modified time | relevance | path

Searched refs:SHA256_MAC_LEN (Results 1 – 25 of 26) sorted by relevance

12

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha256-kdf.c36 u8 T[SHA256_MAC_LEN]; in hmac_sha256_kdf()
43 len[0] = SHA256_MAC_LEN; in hmac_sha256_kdf()
62 if (clen > SHA256_MAC_LEN) in hmac_sha256_kdf()
63 clen = SHA256_MAC_LEN; in hmac_sha256_kdf()
72 forced_memzero(T, SHA256_MAC_LEN); in hmac_sha256_kdf()
80 forced_memzero(T, SHA256_MAC_LEN); in hmac_sha256_kdf()
85 forced_memzero(T, SHA256_MAC_LEN); in hmac_sha256_kdf()
Dsha256-tlsprf.c33 u8 A[SHA256_MAC_LEN]; in tls_prf_sha256()
34 u8 P[SHA256_MAC_LEN]; in tls_prf_sha256()
40 len[0] = SHA256_MAC_LEN; in tls_prf_sha256()
60 hmac_sha256(secret, secret_len, A, SHA256_MAC_LEN, A) < 0) in tls_prf_sha256()
64 if (clen > SHA256_MAC_LEN) in tls_prf_sha256()
65 clen = SHA256_MAC_LEN; in tls_prf_sha256()
Dsha256-prf.c60 u8 hash[SHA256_MAC_LEN]; in sha256_prf_bits()
80 if (plen >= SHA256_MAC_LEN) { in sha256_prf_bits()
84 pos += SHA256_MAC_LEN; in sha256_prf_bits()
Dsha256.h12 #define SHA256_MAC_LEN 32 macro
Dsha256.c86 _len[1] = SHA256_MAC_LEN; in hmac_sha256_vector()
/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dcomeback_token.c22 u8 hash[SHA256_MAC_LEN]; in comeback_token_hash()
36 u8 mac[SHA256_MAC_LEN]; in check_comeback_token()
42 if (token_len != SHA256_MAC_LEN || in check_comeback_token()
61 os_memcmp_const(token + 2, &mac[2], SHA256_MAC_LEN - 2) != 0) { in check_comeback_token()
100 buf = wpabuf_alloc(sizeof(le16) + 3 + SHA256_MAC_LEN); in auth_build_token_req()
111 wpabuf_put_u8(buf, 1 + SHA256_MAC_LEN); in auth_build_token_req()
127 token = wpabuf_put(buf, SHA256_MAC_LEN); in auth_build_token_req()
/hal_espressif-latest/components/wpa_supplicant/src/wps/
Dwps_common.c31 u8 hash[SHA256_MAC_LEN], *opos; in wps_kdf()
45 iter = (res_len + SHA256_MAC_LEN - 1) / SHA256_MAC_LEN; in wps_kdf()
51 hmac_sha256_vector(key, SHA256_MAC_LEN, 4, addr, len, hash); in wps_kdf()
53 os_memcpy(opos, hash, SHA256_MAC_LEN); in wps_kdf()
54 opos += SHA256_MAC_LEN; in wps_kdf()
55 left -= SHA256_MAC_LEN; in wps_kdf()
65 u8 dhkey[SHA256_MAC_LEN], kdk[SHA256_MAC_LEN]; in wps_derive_keys()
141 u8 hash[SHA256_MAC_LEN]; in wps_derive_psk()
Dwps_attr_process.c19 u8 hash[SHA256_MAC_LEN]; in wps_process_authenticator()
57 u8 hash[SHA256_MAC_LEN]; in wps_process_key_wrap_auth()
Dwps_enrollee.c57 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash()
58 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash()
69 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash1", hash, SHA256_MAC_LEN); in wps_build_e_hash()
73 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash()
74 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash()
79 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash2", hash, SHA256_MAC_LEN); in wps_build_e_hash()
637 u8 hash[SHA256_MAC_LEN]; in wps_process_r_snonce1()
677 u8 hash[SHA256_MAC_LEN]; in wps_process_r_snonce2()
Dwps_attr_build.c167 u8 hash[SHA256_MAC_LEN]; in wps_build_authenticator()
385 u8 hash[SHA256_MAC_LEN]; in wps_build_key_wrap_auth()
Dwps_registrar.c1491 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1492 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1503 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash1", hash, SHA256_MAC_LEN); in wps_build_r_hash()
1507 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1508 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1513 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash2", hash, SHA256_MAC_LEN); in wps_build_r_hash()
2311 u8 hash[SHA256_MAC_LEN]; in wps_process_e_snonce1()
2351 u8 hash[SHA256_MAC_LEN]; in wps_process_e_snonce2()
/hal_espressif-latest/components/wpa_supplicant/src/common/
Ddpp.c539 bi->pubkey_hash, SHA256_MAC_LEN); in dpp_parse_uri_pk()
762 SHA256_MAC_LEN); in dpp_bootstrap_key_hash()
810 SHA256_MAC_LEN); in dpp_keygen()
964 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_r_bootstrap_key_hash()
965 wpabuf_put_data(msg, hash, SHA256_MAC_LEN); in dpp_build_attr_r_bootstrap_key_hash()
976 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_i_bootstrap_key_hash()
977 wpabuf_put_data(msg, hash, SHA256_MAC_LEN); in dpp_build_attr_i_bootstrap_key_hash()
999 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + (pi ? wpabuf_len(pi) : 0) + in dpp_auth_build_req()
1161 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_resp()
1527 u8 test_hash[SHA256_MAC_LEN]; in dpp_auth_init()
[all …]
Dsae.c144 wpa_hexdump_key(MSG_MSGDUMP, "SAE: pwd-seed", pwd_seed, SHA256_MAC_LEN); in sae_test_pwd_seed_ecc()
148 if (sha256_prf_bits(pwd_seed, SHA256_MAC_LEN, "SAE Hunting and Pecking", in sae_test_pwd_seed_ecc()
195 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-seed", pwd_seed, SHA256_MAC_LEN); in sae_test_pwd_seed_ffc()
198 if (sha256_prf_bits(pwd_seed, SHA256_MAC_LEN, "SAE Hunting and Pecking", in sae_test_pwd_seed_ffc()
343 u8 pwd_seed[SHA256_MAC_LEN]; in sae_derive_pwe_ecc()
364 pwd_seed[SHA256_MAC_LEN - 1] & 0x01); in sae_derive_pwe_ecc()
481 u8 pwd_seed[SHA256_MAC_LEN]; in sae_derive_pwe_ffc()
1488 hash_len = SHA256_MAC_LEN; in sae_derive_keys()
1778 if (tlen < SHA256_MAC_LEN) { in sae_parse_commit_token()
Ddpp.h163 u8 pubkey_hash[SHA256_MAC_LEN];
239 u8 waiting_pubkey_hash[SHA256_MAC_LEN];
Dwpa_common.c1046 unsigned char hash[SHA256_MAC_LEN]; in rsn_pmkid_suite_b()
1231 unsigned char hash[SHA256_MAC_LEN]; in rsn_pmkid()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_dpp.c148 if (!r_bootstrap || r_bootstrap_len != SHA256_MAC_LEN) { in esp_dpp_rx_auth_req()
157 if (!i_bootstrap || i_bootstrap_len != SHA256_MAC_LEN) { in esp_dpp_rx_auth_req()
167 if (os_memcmp(own_bi->pubkey_hash, r_bootstrap, SHA256_MAC_LEN)) { in esp_dpp_rx_auth_req()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c253 if (*len < SHA256_MAC_LEN) { in crypto_hash_finish()
254 *len = SHA256_MAC_LEN; in crypto_hash_finish()
258 *len = SHA256_MAC_LEN; in crypto_hash_finish()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dtlsv1_client_read.c515 u8 hash[SHA256_MAC_LEN]; in tls_process_certificate()
525 SHA256_MAC_LEN) != 0) { in tls_process_certificate()
529 hash, SHA256_MAC_LEN); in tls_process_certificate()
1387 hlen = SHA256_MAC_LEN; in tls_process_server_finished()
Dtlsv1_record.c52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite()
Dtlsv1_client_write.c620 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify()
793 hlen = SHA256_MAC_LEN; in tls_write_client_finished()
Dtlsv1_common.c351 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash()
Dtlsv1_server_read.c986 hlen = SHA256_MAC_LEN; in tls_process_certificate_verify()
1194 hlen = SHA256_MAC_LEN; in tls_process_client_finished()
Dtlsv1_server_write.c847 hlen = SHA256_MAC_LEN; in tls_write_server_finished()
/hal_espressif-latest/components/wpa_supplicant/src/rsn_supp/
Dwpa.c2868 u8 pmkid[SHA256_MAC_LEN], prk[SHA256_MAC_LEN], pmk[SHA256_MAC_LEN]; in owe_process_assoc_resp()
2958 hash_len = SHA256_MAC_LEN; in owe_process_assoc_resp()
2982 hash_len = SHA256_MAC_LEN; in owe_process_assoc_resp()
2996 forced_memzero(prk, SHA256_MAC_LEN); in owe_process_assoc_resp()
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/
Deap_server.c711 u8 hash[SHA256_MAC_LEN]; in erp_send_finish_reauth()
809 u8 hash[SHA256_MAC_LEN]; in SM_STATE()

12