commit | bab1edc7219ff8f68c6612e144b9ee9afa1b81f1 | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <Andres.AmayaGarcia@arm.com> | Wed Jul 05 15:45:47 2017 +0100 |
committer | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Wed Jul 12 11:10:46 2017 +0100 |
tree | 281d76b36c4cfede7ec18a9116d95147f7a3c74d | |
parent | 55a5235ea15b13023ea396b4dcaf91a64b9cec48 [diff] [blame] |
Zeroize tmp buffer in entropy_update()
diff --git a/library/entropy.c b/library/entropy.c index f68d686..0d9a815 100644 --- a/library/entropy.c +++ b/library/entropy.c
@@ -175,6 +175,8 @@ mbedtls_sha256_update( &ctx->accumulator, p, use_len ); #endif + mbedtls_zeroize( tmp, sizeof( tmp ) ); + return( 0 ); }