mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 23:55:44 +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 ) );
|
MPI_CHK( mpi_read_binary( X, buf, size ) );
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
polarssl_zeroize( buf, sizeof( buf ) );
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user