mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 16:35:39 +01:00
Zeroize tmp buf in mbedtls_mpi_fill_random()
This commit is contained in:
parent
dd471788d8
commit
c381444c7f
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user