mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-21 16:27:42 +00: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 ) );
|
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