1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

move zeroize master secrets

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2021-12-08 14:34:10 +08:00
parent 2c70a39d97
commit 23ab7a46a3
2 changed files with 4 additions and 2 deletions

View File

@ -1646,8 +1646,7 @@ static int ssl_tls13_flush_buffers( mbedtls_ssl_context *ssl )
*/
static int ssl_tls13_handshake_wrapup( mbedtls_ssl_context *ssl )
{
mbedtls_platform_zeroize( &ssl->handshake->tls13_master_secrets,
sizeof(ssl->handshake->tls13_master_secrets));
mbedtls_platform_zeroize( &ssl->handshake->tls13_hs_secrets,
sizeof(ssl->handshake->tls13_hs_secrets));