Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/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 os_memset(T, 0, SHA256_MAC_LEN); in hmac_sha256_kdf()
80 os_memset(T, 0, SHA256_MAC_LEN); in hmac_sha256_kdf()
85 os_memset(T, 0, 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()
58 hmac_sha256(secret, secret_len, A, SHA256_MAC_LEN, A); in tls_prf_sha256()
61 if (clen > SHA256_MAC_LEN) in tls_prf_sha256()
62 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()
Dcrypto_linux.c151 mac, SHA256_MAC_LEN); in sha256_vector()
205 addr, len, mac, SHA256_MAC_LEN); in hmac_sha256_vector()
268 ctx->mac_len = SHA256_MAC_LEN; in crypto_hash_init()
272 ctx->mac_len = SHA256_MAC_LEN; in crypto_hash_init()
Dcrypto_module_tests.c1917 u8 prk[SHA256_MAC_LEN]; in test_extract_expand_hkdf()
2011 if (os_memcmp(prk, prk1, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
2026 if (os_memcmp(prk, prk2, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c23 u8 allzero[SHA256_MAC_LEN]; in eap_pwd_h_init()
24 os_memset(allzero, 0, SHA256_MAC_LEN); in eap_pwd_h_init()
26 SHA256_MAC_LEN); in eap_pwd_h_init()
38 size_t len = SHA256_MAC_LEN; in eap_pwd_h_final()
48 u8 digest[SHA256_MAC_LEN]; in eap_pwd_kdf()
63 crypto_hash_update(hash, digest, SHA256_MAC_LEN); in eap_pwd_kdf()
67 mdlen = SHA256_MAC_LEN; in eap_pwd_kdf()
150 unsigned char pwe_digest[SHA256_MAC_LEN], *prfbuf = NULL, ctr; in compute_password_element()
235 found, is_odd, pwe_digest[SHA256_MAC_LEN - 1] & 0x01); in compute_password_element()
236 if (eap_pwd_kdf(pwe_digest, SHA256_MAC_LEN, in compute_password_element()
[all …]
Deap_eke_common.c98 mac_len = SHA256_MAC_LEN; in eap_eke_pnonce_len()
113 mac_len = SHA256_MAC_LEN; in eap_eke_pnonce_ps_len()
152 return SHA256_MAC_LEN; in eap_eke_auth_len()
252 u8 hash[SHA256_MAC_LEN]; in eap_eke_prf_hmac_sha256()
260 vlen[0] = SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256()
276 if (len > SHA256_MAC_LEN) { in eap_eke_prf_hmac_sha256()
277 os_memcpy(res, hash, SHA256_MAC_LEN); in eap_eke_prf_hmac_sha256()
278 res += SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256()
279 len -= SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256()
578 return hmac_sha256(key, SHA256_MAC_LEN, data, data_len, res); in eap_eke_mac()
[all …]
Deap_gpsk_common.c79 u8 ibuf[2], hash[SHA256_MAC_LEN]; in eap_gpsk_gkdf_sha256()
83 hashlen = SHA256_MAC_LEN; in eap_gpsk_gkdf_sha256()
130 mk_len = SHA256_MAC_LEN; in eap_gpsk_derive_keys_helper()
230 #define EAP_GPSK_SK_LEN_SHA256 SHA256_MAC_LEN in eap_gpsk_derive_keys_sha256()
231 #define EAP_GPSK_PK_LEN_SHA256 SHA256_MAC_LEN in eap_gpsk_derive_keys_sha256()
Deap_sim_common.c238 u8 hash[SHA256_MAC_LEN]; in prf_prime()
266 len[0] = SHA256_MAC_LEN; in prf_prime()
267 hlen = res_len > SHA256_MAC_LEN ? SHA256_MAC_LEN : res_len; in prf_prime()
362 unsigned char hmac[SHA256_MAC_LEN]; in eap_sim_verify_mac_sha256()
401 unsigned char hmac[SHA256_MAC_LEN]; in eap_sim_add_mac_sha256()
429 u8 hash[SHA256_MAC_LEN]; in eap_aka_prime_derive_ck_ik_prime()
/external/wpa_supplicant_8/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()
135 u8 hash[SHA256_MAC_LEN]; in wps_derive_psk()
Dwps_attr_process.c19 u8 hash[SHA256_MAC_LEN]; in wps_process_authenticator()
56 u8 hash[SHA256_MAC_LEN]; in wps_process_key_wrap_auth()
Dwps_enrollee.c55 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash()
56 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash()
67 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash1", hash, SHA256_MAC_LEN); in wps_build_e_hash()
71 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash()
72 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash()
77 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash2", hash, SHA256_MAC_LEN); in wps_build_e_hash()
626 u8 hash[SHA256_MAC_LEN]; in wps_process_r_snonce1()
666 u8 hash[SHA256_MAC_LEN]; in wps_process_r_snonce2()
Dwps_attr_build.c161 u8 hash[SHA256_MAC_LEN]; in wps_build_authenticator()
371 u8 hash[SHA256_MAC_LEN]; in wps_build_key_wrap_auth()
Dwps_registrar.c1497 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1498 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1509 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash1", hash, SHA256_MAC_LEN); in wps_build_r_hash()
1513 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1514 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1519 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash2", hash, SHA256_MAC_LEN); in wps_build_r_hash()
2297 u8 hash[SHA256_MAC_LEN]; in wps_process_e_snonce1()
2337 u8 hash[SHA256_MAC_LEN]; in wps_process_e_snonce2()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c50 u8 my_confirm[SHA256_MAC_LEN];
54 u8 session_id[1 + SHA256_MAC_LEN];
315 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_build_confirm_req()
396 os_memcpy(data->my_confirm, conf, SHA256_MAC_LEN); in eap_pwd_build_confirm_req()
398 data->outbuf = wpabuf_alloc(SHA256_MAC_LEN); in eap_pwd_build_confirm_req()
402 wpabuf_put_data(data->outbuf, conf, SHA256_MAC_LEN); in eap_pwd_build_confirm_req()
750 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_process_confirm_resp()
756 if (payload_len != SHA256_MAC_LEN) { in eap_pwd_process_confirm_resp()
759 (unsigned int) payload_len, SHA256_MAC_LEN); in eap_pwd_process_confirm_resp()
825 if (os_memcmp_const(conf, ptr, SHA256_MAC_LEN)) { in eap_pwd_process_confirm_resp()
[all …]
/external/wpa_supplicant_8/src/common/
Dsae.c308 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-seed", pwd_seed, SHA256_MAC_LEN); in sae_test_pwd_seed_ecc()
312 if (sha256_prf_bits(pwd_seed, SHA256_MAC_LEN, "SAE Hunting and Pecking", in sae_test_pwd_seed_ecc()
349 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-seed", pwd_seed, SHA256_MAC_LEN); in sae_test_pwd_seed_ffc()
352 if (sha256_prf_bits(pwd_seed, SHA256_MAC_LEN, "SAE Hunting and Pecking", in sae_test_pwd_seed_ffc()
541 u8 pwd_seed[SHA256_MAC_LEN]; in sae_derive_pwe_ecc()
562 pwd_seed[SHA256_MAC_LEN - 1] & 0x01); in sae_derive_pwe_ecc()
679 u8 pwd_seed[SHA256_MAC_LEN]; in sae_derive_pwe_ffc()
910 u8 keyseed[SHA256_MAC_LEN]; in sae_derive_keys()
1091 if (tlen < SHA256_MAC_LEN) { in sae_parse_commit_token()
1106 elem += SHA256_MAC_LEN; in sae_parse_commit_token()
[all …]
Ddpp.c856 bi->pubkey_hash, SHA256_MAC_LEN); in dpp_parse_uri_pk()
1306 SHA256_MAC_LEN); in dpp_bootstrap_key_hash()
1354 SHA256_MAC_LEN); in dpp_keygen()
1509 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_r_bootstrap_key_hash()
1510 wpabuf_put_data(msg, hash, SHA256_MAC_LEN); in dpp_build_attr_r_bootstrap_key_hash()
1521 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_i_bootstrap_key_hash()
1522 wpabuf_put_data(msg, hash, SHA256_MAC_LEN); in dpp_build_attr_i_bootstrap_key_hash()
1543 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + (pi ? wpabuf_len(pi) : 0) + in dpp_auth_build_req()
1723 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_resp()
2093 u8 test_hash[SHA256_MAC_LEN]; in dpp_auth_init()
[all …]
Ddpp.h116 u8 pubkey_hash[SHA256_MAC_LEN];
182 u8 waiting_pubkey_hash[SHA256_MAC_LEN];
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c53 u8 session_id[1 + SHA256_MAC_LEN];
196 id = os_memdup(data->session_id, 1 + SHA256_MAC_LEN); in eap_pwd_get_session_id()
200 *len = 1 + SHA256_MAC_LEN; in eap_pwd_get_session_id()
444 password_len = SHA256_MAC_LEN; in eap_pwd_perform_commit_exchange()
648 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_perform_confirm_exchange()
656 if (payload_len != SHA256_MAC_LEN) { in eap_pwd_perform_confirm_exchange()
659 (unsigned int) payload_len, SHA256_MAC_LEN); in eap_pwd_perform_confirm_exchange()
735 if (os_memcmp_const(conf, ptr, SHA256_MAC_LEN)) { in eap_pwd_perform_confirm_exchange()
796 data->outbuf = wpabuf_alloc(SHA256_MAC_LEN); in eap_pwd_perform_confirm_exchange()
800 wpabuf_put_data(data->outbuf, conf, SHA256_MAC_LEN); in eap_pwd_perform_confirm_exchange()
/external/wpa_supplicant_8/src/utils/
Duuid.c78 u8 hash[SHA256_MAC_LEN]; in uuid_random()
/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_read.c502 u8 hash[SHA256_MAC_LEN]; in tls_process_certificate()
512 SHA256_MAC_LEN) != 0) { in tls_process_certificate()
516 hash, SHA256_MAC_LEN); in tls_process_certificate()
1374 hlen = SHA256_MAC_LEN; in tls_process_server_finished()
Dtlsv1_client_write.c622 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify()
795 hlen = SHA256_MAC_LEN; in tls_write_client_finished()
Dtlsv1_record.c52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite()

12