Zeroize tmp buffer in entropy_update()

This commit is contained in:
Andres Amaya Garcia 2017-07-05 15:45:47 +01:00 committed by Andres Amaya Garcia
parent 55a5235ea1
commit bab1edc721

View file

@ -175,6 +175,8 @@ static int entropy_update( mbedtls_entropy_context *ctx, unsigned char source_id
mbedtls_sha256_update( &ctx->accumulator, p, use_len ); mbedtls_sha256_update( &ctx->accumulator, p, use_len );
#endif #endif
mbedtls_zeroize( tmp, sizeof( tmp ) );
return( 0 ); return( 0 );
} }