Zeroize tmp buf in mbedtls_mpi_fill_random()

This commit is contained in:
Andres Amaya Garcia 2017-07-12 10:44:50 +01:00
parent dd471788d8
commit c381444c7f

View File

@ -1880,6 +1880,8 @@ 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 );
}