X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Fmac%2Fhmac_ct.c;h=e1c1d8024ec23fb2816dd34c3ca09ea2a546c1eb;hp=d3ab425c98f185b73a594644b0afc60195d3d5cd;hb=b2ec2030e40acf5e9e4cd0f2669aacb27eadb540;hpb=3210f38e0491b39aec1ef419cb4114e9483089fb diff --git a/src/mac/hmac_ct.c b/src/mac/hmac_ct.c index d3ab425..e1c1d80 100644 --- a/src/mac/hmac_ct.c +++ b/src/mac/hmac_ct.c @@ -63,7 +63,7 @@ br_hmac_outCT(const br_hmac_context *ctx, */ const br_hash_class *dig; - br_hmac_allhash_context hc; + br_hash_compat_context hc; int be; uint32_t po, bs; uint32_t kr, km, kl, kz, u; @@ -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;