mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-01 19:35:56 +00:00
esp_wifi: WPA2 enterprise related changes
1. Removed DHE ciphers when mbedTLS is disabled since they take too much processing power. 2. Removed support of SHA384 and SHA512 when mbedTLS is disabled due to too much processing needed. 3. Fixed bugs in crypto_hash_init API which was causing EAP connections to fail when mbedTLS was enabled. 4. Cleaned some code of crypto_hash_***
This commit is contained in:
@@ -350,6 +350,7 @@ int tlsv12_key_x_server_params_hash(u16 tls_version, u8 hash_alg,
|
||||
alg = CRYPTO_HASH_ALG_SHA256;
|
||||
hlen = SHA256_MAC_LEN;
|
||||
break;
|
||||
#ifdef CONFIG_CRYPTO_MBEDTLS
|
||||
case TLS_HASH_ALG_SHA384:
|
||||
alg = CRYPTO_HASH_ALG_SHA384;
|
||||
hlen = 48;
|
||||
@@ -358,6 +359,7 @@ int tlsv12_key_x_server_params_hash(u16 tls_version, u8 hash_alg,
|
||||
alg = CRYPTO_HASH_ALG_SHA512;
|
||||
hlen = 64;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user