From 1bfa46a45617d7ddb1403900a0f8f53158aac66a Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Wed, 12 Jul 2017 11:00:02 +0100 Subject: [PATCH] Zeroize tmp buffer in entropy_update() --- library/entropy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/entropy.c b/library/entropy.c index caff22f42..5a8321b8d 100644 --- a/library/entropy.c +++ b/library/entropy.c @@ -166,6 +166,8 @@ static int entropy_update( entropy_context *ctx, unsigned char source_id, sha256_update( &ctx->accumulator, p, use_len ); #endif + polarssl_zeroize( tmp, sizeof( tmp ) ); + return( 0 ); }