mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-13 07:31:37 +02:00
Zeroize tmp buf in mbedtls_mpi_fill_random()
This commit is contained in:
@@ -1880,6 +1880,8 @@ int mpi_fill_random( mpi *X, size_t size,
|
||||
MPI_CHK( mpi_read_binary( X, buf, size ) );
|
||||
|
||||
cleanup:
|
||||
polarssl_zeroize( buf, sizeof( buf ) );
|
||||
|
||||
return( ret );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user