mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Clean randbytes
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
745db226db
commit
d103bdb01d
1 changed files with 3 additions and 0 deletions
|
|
@ -965,6 +965,9 @@ static int ssl_tls13_postprocess_server_finished_message( mbedtls_ssl_context *s
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
/* randbytes is not used again */
|
||||
mbedtls_platform_zeroize( ssl->handshake->randbytes,
|
||||
sizeof( ssl->handshake->randbytes ) );
|
||||
transform_application =
|
||||
mbedtls_calloc( 1, sizeof( mbedtls_ssl_transform ) );
|
||||
if( transform_application == NULL )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue