/external/wpa_supplicant_8/src/crypto/ |
D | sha256-kdf.c | 33 u8 T[SHA256_MAC_LEN]; in hmac_sha256_kdf() 40 len[0] = SHA256_MAC_LEN; in hmac_sha256_kdf() 54 if (clen > SHA256_MAC_LEN) in hmac_sha256_kdf() 55 clen = SHA256_MAC_LEN; in hmac_sha256_kdf() 64 os_memset(T, 0, SHA256_MAC_LEN); in hmac_sha256_kdf() 72 os_memset(T, 0, SHA256_MAC_LEN); in hmac_sha256_kdf() 77 os_memset(T, 0, SHA256_MAC_LEN); in hmac_sha256_kdf()
|
D | sha256-tlsprf.c | 33 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()
|
D | sha256-prf.c | 60 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()
|
D | sha256.h | 12 #define SHA256_MAC_LEN 32 macro
|
D | sha256.c | 86 _len[1] = SHA256_MAC_LEN; in hmac_sha256_vector()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pwd_common.c | 19 u8 allzero[SHA256_MAC_LEN]; in eap_pwd_h_init() 20 os_memset(allzero, 0, SHA256_MAC_LEN); in eap_pwd_h_init() 22 SHA256_MAC_LEN); in eap_pwd_h_init() 34 size_t len = SHA256_MAC_LEN; in eap_pwd_h_final() 44 u8 digest[SHA256_MAC_LEN]; in eap_pwd_kdf() 59 crypto_hash_update(hash, digest, SHA256_MAC_LEN); in eap_pwd_kdf() 63 mdlen = SHA256_MAC_LEN; in eap_pwd_kdf() 96 unsigned char pwe_digest[SHA256_MAC_LEN], *prfbuf = NULL, ctr; in compute_password_element() 210 BN_bin2bn(pwe_digest, SHA256_MAC_LEN, rnd); in compute_password_element() 212 if (eap_pwd_kdf(pwe_digest, SHA256_MAC_LEN, in compute_password_element() [all …]
|
D | eap_eke_common.c | 98 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() 275 u8 hash[SHA256_MAC_LEN]; in eap_eke_prf_hmac_sha256() 283 vlen[0] = SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256() 299 if (len > SHA256_MAC_LEN) { in eap_eke_prf_hmac_sha256() 300 os_memcpy(res, hash, SHA256_MAC_LEN); in eap_eke_prf_hmac_sha256() 301 res += SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256() 302 len -= SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256() 600 return hmac_sha256(key, SHA256_MAC_LEN, data, data_len, res); in eap_eke_mac() [all …]
|
D | eap_gpsk_common.c | 79 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()
|
D | eap_sim_common.c | 239 u8 hash[SHA256_MAC_LEN]; in prf_prime() 267 len[0] = SHA256_MAC_LEN; in prf_prime() 268 hlen = res_len > SHA256_MAC_LEN ? SHA256_MAC_LEN : res_len; in prf_prime() 363 unsigned char hmac[SHA256_MAC_LEN]; in eap_sim_verify_mac_sha256() 403 unsigned char hmac[SHA256_MAC_LEN]; in eap_sim_add_mac_sha256() 431 u8 hash[SHA256_MAC_LEN]; in eap_aka_prime_derive_ck_ik_prime()
|
/external/wpa_supplicant_8/src/common/ |
D | sae.c | 274 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-seed", pwd_seed, SHA256_MAC_LEN); in sae_test_pwd_seed_ecc() 278 if (sha256_prf_bits(pwd_seed, SHA256_MAC_LEN, "SAE Hunting and Pecking", in sae_test_pwd_seed_ecc() 319 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-seed", pwd_seed, SHA256_MAC_LEN); in sae_test_pwd_seed_ffc() 322 if (sha256_prf_bits(pwd_seed, SHA256_MAC_LEN, "SAE Hunting and Pecking", in sae_test_pwd_seed_ffc() 477 u8 pwd_seed[SHA256_MAC_LEN]; in sae_derive_pwe_ecc() 500 pwd_seed_odd = pwd_seed[SHA256_MAC_LEN - 1] & 0x01; in sae_derive_pwe_ecc() 577 u8 pwd_seed[SHA256_MAC_LEN]; in sae_derive_pwe_ffc() 789 u8 keyseed[SHA256_MAC_LEN]; in sae_derive_keys() 1245 wpabuf_put(buf, SHA256_MAC_LEN)); in sae_write_confirm() 1251 wpabuf_put(buf, SHA256_MAC_LEN)); in sae_write_confirm() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_common.c | 31 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()
|
D | wps_attr_process.c | 19 u8 hash[SHA256_MAC_LEN]; in wps_process_authenticator() 56 u8 hash[SHA256_MAC_LEN]; in wps_process_key_wrap_auth()
|
D | wps_enrollee.c | 55 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() 621 u8 hash[SHA256_MAC_LEN]; in wps_process_r_snonce1() 661 u8 hash[SHA256_MAC_LEN]; in wps_process_r_snonce2()
|
D | wps_attr_build.c | 160 u8 hash[SHA256_MAC_LEN]; in wps_build_authenticator() 361 u8 hash[SHA256_MAC_LEN]; in wps_build_key_wrap_auth()
|
D | wps_registrar.c | 1447 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_r_hash() 1448 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash() 1459 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash1", hash, SHA256_MAC_LEN); in wps_build_r_hash() 1463 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_r_hash() 1464 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash() 1469 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash2", hash, SHA256_MAC_LEN); in wps_build_r_hash() 2222 u8 hash[SHA256_MAC_LEN]; in wps_process_e_snonce1() 2262 u8 hash[SHA256_MAC_LEN]; in wps_process_e_snonce2()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_pwd.c | 46 u8 my_confirm[SHA256_MAC_LEN]; 50 u8 session_id[1 + SHA256_MAC_LEN]; 310 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_build_confirm_req() 413 os_memcpy(data->my_confirm, conf, SHA256_MAC_LEN); in eap_pwd_build_confirm_req() 415 data->outbuf = wpabuf_alloc(SHA256_MAC_LEN); in eap_pwd_build_confirm_req() 419 wpabuf_put_data(data->outbuf, conf, SHA256_MAC_LEN); in eap_pwd_build_confirm_req() 791 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_process_confirm_resp() 794 if (payload_len != SHA256_MAC_LEN) { in eap_pwd_process_confirm_resp() 797 (unsigned int) payload_len, SHA256_MAC_LEN); in eap_pwd_process_confirm_resp() 888 if (os_memcmp_const(conf, ptr, SHA256_MAC_LEN)) { in eap_pwd_process_confirm_resp() [all …]
|
D | eap_server_aka.c | 272 u8 hash[SHA256_MAC_LEN]; in eap_aka_add_checkcode() 305 u8 hash[SHA256_MAC_LEN]; in eap_aka_verify_checkcode()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_pwd.c | 48 u8 session_id[1 + SHA256_MAC_LEN]; 205 id = os_malloc(1 + SHA256_MAC_LEN); in eap_pwd_get_session_id() 209 os_memcpy(id, data->session_id, 1 + SHA256_MAC_LEN); in eap_pwd_get_session_id() 210 *len = 1 + SHA256_MAC_LEN; in eap_pwd_get_session_id() 578 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_perform_confirm_exchange() 586 if (payload_len != SHA256_MAC_LEN) { in eap_pwd_perform_confirm_exchange() 589 (unsigned int) payload_len, SHA256_MAC_LEN); in eap_pwd_perform_confirm_exchange() 686 if (os_memcmp_const(conf, ptr, SHA256_MAC_LEN)) { in eap_pwd_perform_confirm_exchange() 770 data->outbuf = wpabuf_alloc(SHA256_MAC_LEN); in eap_pwd_perform_confirm_exchange() 774 wpabuf_put_data(data->outbuf, conf, SHA256_MAC_LEN); in eap_pwd_perform_confirm_exchange()
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_read.c | 502 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() 1377 hlen = SHA256_MAC_LEN; in tls_process_server_finished()
|
D | tlsv1_client_write.c | 619 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify() 792 hlen = SHA256_MAC_LEN; in tls_write_client_finished()
|
D | tlsv1_record.c | 52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite()
|
D | tlsv1_server_read.c | 958 hlen = SHA256_MAC_LEN; in tls_process_certificate_verify() 1166 hlen = SHA256_MAC_LEN; in tls_process_client_finished()
|
D | tlsv1_common.c | 351 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash()
|
/external/wpa_supplicant_8/hs20/client/ |
D | osu_client.c | 190 u8 digest1[SHA256_MAC_LEN], digest2[SHA256_MAC_LEN]; in process_est_cert() 201 if (hexstr2bin(fingerprint, digest1, SHA256_MAC_LEN) < 0) { in process_est_cert() 281 u8 digest1[SHA256_MAC_LEN], digest2[SHA256_MAC_LEN]; in download_cert() 301 if (hexstr2bin(hash, digest1, SHA256_MAC_LEN) < 0) { in download_cert()
|
/external/wpa_supplicant_8/src/ap/ |
D | ieee802_11.c | 450 u8 mac[SHA256_MAC_LEN]; in check_sae_token() 452 if (token_len != SHA256_MAC_LEN) in check_sae_token() 456 os_memcmp_const(token, mac, SHA256_MAC_LEN) != 0) in check_sae_token() 481 buf = wpabuf_alloc(sizeof(le16) + SHA256_MAC_LEN); in auth_build_token_req() 487 token = wpabuf_put(buf, SHA256_MAC_LEN); in auth_build_token_req()
|