mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-04 03:26:54 +02:00
Zeroize tmp buffer in entropy_update()
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user