mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 07:41:00 +00:00
Zeroize tmp buf in mbedtls_mpi_fill_random()
This commit is contained in:
parent
e0a727ec4e
commit
64f0e09316
|
@ -1877,6 +1877,8 @@ int mbedtls_mpi_fill_random( mbedtls_mpi *X, size_t size,
|
|||
MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( X, buf, size ) );
|
||||
|
||||
cleanup:
|
||||
mbedtls_zeroize( buf, sizeof( buf ) );
|
||||
|
||||
return( ret );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue