commit | 64f0e093163935b105a845a3abcb26fa16cd608b | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Mon Jun 26 11:20:02 2017 +0100 |
committer | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Tue Jul 11 17:30:57 2017 +0100 |
tree | a92c5327e760060b403d1a4bc6f0839a50c05c44 | |
parent | e0a727ec4e6b93c60880131430411a2777b9c081 [diff] |
Zeroize tmp buf in mbedtls_mpi_fill_random()
diff --git a/library/bignum.c b/library/bignum.c index 52edd3d..142aeac 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -1877,6 +1877,8 @@ MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( X, buf, size ) ); cleanup: + mbedtls_zeroize( buf, sizeof( buf ) ); + return( ret ); }