mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 00:15:40 +01:00
Zeroize stack before returning from mpi_fill_random
This commit is contained in:
parent
754663f8c4
commit
c2102893af
@ -1884,6 +1884,7 @@ 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