mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-27 13:41:13 +00: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 ) );
|
MPI_CHK( mpi_read_binary( X, buf, size ) );
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
polarssl_zeroize( buf, sizeof( buf ) );
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue