Remove duplicate mbedtls_platform_zeroize for tls13_early_secrets

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-02-03 13:51:59 +08:00
parent 16c895dff3
commit f206c1493b

View File

@ -1178,10 +1178,6 @@ static int ssl_tls13_generate_early_key(mbedtls_ssl_context *ssl,
traffic_keys->key_len = key_len;
traffic_keys->iv_len = iv_len;
/* Erase early secrets */
mbedtls_platform_zeroize(
&tls13_early_secrets, sizeof(mbedtls_ssl_tls13_early_secrets));
MBEDTLS_SSL_DEBUG_BUF(4, "client early write_key",
traffic_keys->client_write_key,
traffic_keys->key_len);