/hal_espressif-3.7.0/components/wpa_supplicant/src/tls/ |
D | tlsv1_common.c | 344 size_t hlen; in tlsv12_key_x_server_params_hash() local 351 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash() 356 hlen = 48; in tlsv12_key_x_server_params_hash() 360 hlen = 64; in tlsv12_key_x_server_params_hash() 372 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tlsv12_key_x_server_params_hash() 375 return hlen; in tlsv12_key_x_server_params_hash() 386 size_t hlen; in tls_key_x_server_params_hash() local 397 hlen = MD5_MAC_LEN; in tls_key_x_server_params_hash() 398 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tls_key_x_server_params_hash() 400 hpos += hlen; in tls_key_x_server_params_hash() [all …]
|
D | tlsv1_client_write.c | 578 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local 620 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify() 622 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_write_client_certificate_verify() 645 os_memmove(hash + 19, hash, hlen); in tls_write_client_certificate_verify() 646 hlen += 19; in tls_write_client_certificate_verify() 652 hlen = MD5_MAC_LEN; in tls_write_client_certificate_verify() 654 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify() 665 hlen = SHA1_MAC_LEN; in tls_write_client_certificate_verify() 667 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify() 675 hlen += MD5_MAC_LEN; in tls_write_client_certificate_verify() [all …]
|
D | tlsv1_server_write.c | 567 int hlen; in tls_write_server_key_exchange() local 571 hlen = tlsv12_key_x_server_params_hash( in tls_write_server_key_exchange() 587 if (hlen < 0 || end - pos < 2) { in tls_write_server_key_exchange() 609 hlen += 19; in tls_write_server_key_exchange() 620 hlen = tls_key_x_server_params_hash( in tls_write_server_key_exchange() 626 if (hlen < 0) { in tls_write_server_key_exchange() 633 hash, hlen); in tls_write_server_key_exchange() 637 hash[hlen - 1] ^= 0x80; in tls_write_server_key_exchange() 657 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, in tls_write_server_key_exchange() 835 size_t rlen, hlen; in tls_write_server_finished() local [all …]
|
D | tlsv1_server_read.c | 890 size_t hlen; in tls_process_certificate_verify() local 986 hlen = SHA256_MAC_LEN; in tls_process_certificate_verify() 988 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_process_certificate_verify() 999 hlen = MD5_MAC_LEN; in tls_process_certificate_verify() 1001 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) { in tls_process_certificate_verify() 1012 hlen = SHA1_MAC_LEN; in tls_process_certificate_verify() 1014 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_process_certificate_verify() 1022 hlen += MD5_MAC_LEN; in tls_process_certificate_verify() 1028 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); in tls_process_certificate_verify() 1031 hash, hlen, pos, end - pos, &alert) < 0) { in tls_process_certificate_verify() [all …]
|
D | tlsv1_record.c | 282 size_t i, rlen, hlen; in tlsv1_record_receive() local 451 hlen = sizeof(hash); in tlsv1_record_receive() 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { in tlsv1_record_receive() 458 if (hlen != rl->hash_size || in tlsv1_record_receive() 459 os_memcmp_const(hash, out_data + plen, hlen) != 0 || in tlsv1_record_receive()
|
D | tlsv1_client_read.c | 741 int hlen; in tlsv1_process_diffie_hellman() local 766 hlen = tlsv12_key_x_server_params_hash( in tlsv1_process_diffie_hellman() 776 hlen = tls_key_x_server_params_hash( in tlsv1_process_diffie_hellman() 782 if (hlen < 0) in tlsv1_process_diffie_hellman() 785 hash, hlen); in tlsv1_process_diffie_hellman() 789 hash, hlen, pos, end - pos, in tlsv1_process_diffie_hellman() 1328 size_t left, len, hlen; in tls_process_server_finished() local 1387 hlen = SHA256_MAC_LEN; in tls_process_server_finished() 1389 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) in tls_process_server_finished() 1400 hlen = MD5_MAC_LEN; in tls_process_server_finished() [all …]
|
/hal_espressif-3.7.0/components/wpa_supplicant/src/utils/ |
D | common.c | 351 size_t tlen, hlen = os_strlen(value); in wpa_config_parse_string() local 353 if (hlen & 1) in wpa_config_parse_string() 356 if (hlen == 5 || hlen == 13) { in wpa_config_parse_string() 357 *len = hlen; in wpa_config_parse_string() 367 tlen = hlen / 2; in wpa_config_parse_string()
|
/hal_espressif-3.7.0/components/wpa_supplicant/src/eap_peer/ |
D | eap_fast_pac.c | 234 int hlen; in eap_fast_parse_hex() local 239 hlen = os_strlen(value); in eap_fast_parse_hex() 240 if (hlen & 1) in eap_fast_parse_hex() 242 *len = hlen / 2; in eap_fast_parse_hex()
|
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/ |
D | crypto.h | 1014 const struct crypto_bignum *s, struct crypto_key *csign, int hlen);
|
/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-ec.c | 813 const struct crypto_bignum *r, const struct crypto_bignum *s, struct crypto_key *csign, int hlen) in crypto_edcsa_sign_verify() argument 828 if((ret = mbedtls_ecdsa_verify(&ctx->MBEDTLS_PRIVATE(grp), hash, hlen, in crypto_edcsa_sign_verify()
|