commit | 0f49bbc1fc63feafed4b295c1bb0880385faffed | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Wed Oct 18 12:41:30 2017 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Wed Oct 25 15:46:29 2017 +0100 |
tree | b040240e2b0f6a4ff20e672140a22e6c8b41d6f1 | |
parent | b3088b4b378914a058853be2835476255639e4ad [diff] [blame] |
Zeroize stack before returning from mpi_fill_random
diff --git a/library/bignum.c b/library/bignum.c index 8864292..25fe8be 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -1881,6 +1881,7 @@ MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( X, buf, size ) ); cleanup: + mbedtls_zeroize( buf, sizeof( buf ) ); return( ret ); }