/hal_espressif-latest/components/wpa_supplicant/src/common/ |
D | sae.c | 524 static int hkdf_extract(size_t hash_len, const u8 *salt, size_t salt_len, in hkdf_extract() argument 528 if (hash_len == 32) in hkdf_extract() 535 static int hkdf_expand(size_t hash_len, const u8 *prk, size_t prk_len, in hkdf_expand() argument 540 if (hash_len == 32) in hkdf_expand() 777 static int sae_pwd_seed(size_t hash_len, const u8 *ssid, size_t ssid_len, in sae_pwd_seed() argument 799 if (hkdf_extract(hash_len, ssid, ssid_len, num_elem, addr, len, in sae_pwd_seed() 802 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-seed", pwd_seed, hash_len); in sae_pwd_seed() 825 size_t pwd_value_len, hash_len, prime_len; in sae_derive_pt_ecc() local 834 hash_len = sae_ecc_prime_len_2_hash_len(prime_len); in sae_derive_pt_ecc() 839 if (sae_pwd_seed(hash_len, ssid, ssid_len, password, password_len, in sae_derive_pt_ecc() [all …]
|
D | sae_pk.c | 462 int sae_hash(size_t hash_len, const u8 *data, size_t len, u8 *hash) in sae_hash() argument 464 if (hash_len == 32) { in sae_hash() 468 if (hash_len == 48) { in sae_hash() 473 if (hash_len == 64) { in sae_hash() 481 static int sae_pk_hash_sig_data(struct sae_data *sae, size_t hash_len, in sae_pk_hash_sig_data() argument 527 if (sae_hash(hash_len, wpabuf_head(sig_data), wpabuf_len(sig_data), in sae_pk_hash_sig_data() 532 hash, hash_len); in sae_pk_hash_sig_data() 546 size_t hash_len, hash_data_len; in sae_pk_valid_fingerprint() local 559 hash_len = sae_group_2_hash_len(group); in sae_pk_valid_fingerprint() 574 res = sae_hash(hash_len, hash_data, hash_data_len, hash); in sae_pk_valid_fingerprint() [all …]
|
D | dpp.c | 100 if (curve->hash_len == 32) in dpp_hash_vector() 103 if (curve->hash_len == 48) in dpp_hash_vector() 105 if (curve->hash_len == 64) in dpp_hash_vector() 112 static int dpp_hkdf_expand(size_t hash_len, const u8 *secret, size_t secret_len, in dpp_hkdf_expand() argument 115 if (hash_len == 32) in dpp_hkdf_expand() 120 if (hash_len == 48) in dpp_hkdf_expand() 124 if (hash_len == 64) in dpp_hkdf_expand() 133 static int dpp_hmac_vector(size_t hash_len, const u8 *key, size_t key_len, in dpp_hmac_vector() argument 137 if (hash_len == 32) in dpp_hmac_vector() 141 if (hash_len == 48) in dpp_hmac_vector() [all …]
|
D | sae.h | 174 int sae_hash(size_t hash_len, const u8 *data, size_t len, u8 *hash);
|
D | dpp.h | 143 size_t hash_len; member
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | tlsv1_client_ocsp.c | 124 unsigned int hash_len; in tls_process_ocsp_single_response() local 175 hash_len = ocsp_hash_data(&alg.oid, issuer->subject_dn, in tls_process_ocsp_single_response() 177 if (hash_len == 0 || name_hash_len != hash_len || in tls_process_ocsp_single_response() 178 os_memcmp(name_hash, hash, hash_len) != 0) { in tls_process_ocsp_single_response() 181 hash, hash_len); in tls_process_ocsp_single_response() 197 hash_len = ocsp_hash_data(&alg.oid, issuer->public_key, in tls_process_ocsp_single_response() 199 if (hash_len == 0 || key_hash_len != hash_len || in tls_process_ocsp_single_response() 200 os_memcmp(key_hash, hash, hash_len) != 0) { in tls_process_ocsp_single_response() 203 hash, hash_len); in tls_process_ocsp_single_response()
|
D | pkcs1.h | 27 const u8 *hash, size_t hash_len);
|
D | x509v3.c | 1853 size_t hash_len; in x509_check_signature() local 2045 hash_len = 16; in x509_check_signature() 2047 hash, hash_len); in x509_check_signature() 2051 hash_len = 20; in x509_check_signature() 2053 hash, hash_len); in x509_check_signature() 2057 hash_len = 32; in x509_check_signature() 2059 hash, hash_len); in x509_check_signature() 2063 hash_len = 48; in x509_check_signature() 2065 hash, hash_len); in x509_check_signature() 2069 hash_len = 64; in x509_check_signature() [all …]
|
D | pkcs1.c | 203 const u8 *hash, size_t hash_len) in pkcs1_v15_sig_ver() argument 318 if (hdr.length != hash_len || in pkcs1_v15_sig_ver()
|
D | tlsv1_client_read.c | 309 ev.peer_cert.hash_len = sizeof(hash); in tls_peer_cert_event()
|
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/ |
D | eap_server.c | 712 size_t hash_len; in erp_send_finish_reauth() local 718 hash_len = 32; in erp_send_finish_reauth() 721 hash_len = 16; in erp_send_finish_reauth() 727 hash_len = 0; in erp_send_finish_reauth() 730 if (hash_len) in erp_send_finish_reauth() 731 plen += 1 + hash_len; in erp_send_finish_reauth() 751 wpabuf_put_data(msg, hash, hash_len); in erp_send_finish_reauth() 810 size_t hash_len; in SM_STATE() local 915 hash_len = 32; in SM_STATE() 923 hash_len = 16; in SM_STATE() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/wps/ |
D | wps_attr_build.c | 433 size_t hash_len; in wps_build_oob_dev_pw() local 440 hash_len = wpabuf_len(pubkey); in wps_build_oob_dev_pw() 441 if (sha256_vector(1, addr, &hash_len, pubkey_hash) < 0) in wps_build_oob_dev_pw()
|
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | tls.h | 56 size_t hash_len; member
|
D | crypto.h | 1002 struct crypto_key *csign, int hash_len);
|
/hal_espressif-latest/components/wpa_supplicant/src/rsn_supp/ |
D | wpa.c | 2865 size_t prime_len=0,hash_len=0; in owe_process_assoc_resp() local 2958 hash_len = SHA256_MAC_LEN; in owe_process_assoc_resp() 2982 hash_len = SHA256_MAC_LEN; in owe_process_assoc_resp() 2987 wpa_hexdump_key(MSG_DEBUG, "OWE: prk", prk, hash_len); in owe_process_assoc_resp() 2990 res = hmac_sha256_kdf(prk, hash_len, NULL, (const u8 *)info, in owe_process_assoc_resp() 2991 os_strlen(info), pmk, hash_len); in owe_process_assoc_resp() 2999 os_memcpy(sm->pmk,pmk,hash_len); in owe_process_assoc_resp() 3000 sm->pmk_len = hash_len; in owe_process_assoc_resp()
|
/hal_espressif-latest/components/mbedtls/port/mbedtls_rom/ |
D | mbedtls_rom_osi.h | 257 …ntext *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned c… 258 …ntext *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned c… 259 …ntext *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned c… 260 …ntext *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *s…
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-ec.c | 807 …nst struct crypto_bignum *r, const struct crypto_bignum *s, struct crypto_key *csign, int hash_len) in crypto_ecdsa_get_sign() argument
|