X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Fmac%2Fhmac_ct.c;h=e1c1d8024ec23fb2816dd34c3ca09ea2a546c1eb;hp=3237885d7afcc1ba1a025651bb63f203afb6db1f;hb=9721b3e7566693128a5923cc1f481216b7853466;hpb=e683ebfe1962ef5b00a972761984674528922a4a diff --git a/src/mac/hmac_ct.c b/src/mac/hmac_ct.c index 3237885..e1c1d80 100644 --- a/src/mac/hmac_ct.c +++ b/src/mac/hmac_ct.c @@ -150,6 +150,7 @@ br_hmac_outCT(const br_hmac_context *ctx, * Hash state is obtained whenever we reach a full block. This * is the result we want if and only if u == kz. */ + memset(tmp2, 0, sizeof tmp2); for (u = 0; u < km; u ++) { uint32_t v; uint32_t d, e, x0, x1;