Fixed test code (removed static reference to aes_x86ni code).
[BearSSL] / src / mac / hmac_ct.c
index d3ab425..e1c1d80 100644 (file)
@@ -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;