Zeroize stack before returning from mpi_fill_random

This commit is contained in:
Hanno Becker 2017-10-25 16:09:08 +01:00
parent 754663f8c4
commit c2102893af

View File

@ -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 );
}