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 ); }