commit | c381444c7f033cbc5968069ed28795ac6933c091 | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Wed Jul 12 10:44:50 2017 +0100 |
committer | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Wed Jul 12 10:44:50 2017 +0100 |
tree | 23fae73c82c4c76dedf3fbdf214f09e13644dc70 | |
parent | dd471788d8dcd17dfb5a4d7667658008f7e056f9 [diff] |
Zeroize tmp buf in mbedtls_mpi_fill_random()
diff --git a/library/bignum.c b/library/bignum.c index 4829d91..e4a8dec 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -1880,6 +1880,8 @@ MPI_CHK( mpi_read_binary( X, buf, size ) ); cleanup: + polarssl_zeroize( buf, sizeof( buf ) ); + return( ret ); }