Zeroize tmp buffer in entropy_update()

This commit is contained in:
Andres Amaya Garcia 2017-07-12 11:00:02 +01:00
parent af134da17e
commit 1bfa46a456

View file

@ -166,6 +166,8 @@ static int entropy_update( entropy_context *ctx, unsigned char source_id,
sha256_update( &ctx->accumulator, p, use_len ); sha256_update( &ctx->accumulator, p, use_len );
#endif #endif
polarssl_zeroize( tmp, sizeof( tmp ) );
return( 0 ); return( 0 );
} }