X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/b67d9ed16d9ef4e4254b8d813237342b40f54f00..HEAD:/symm/hmac-def.h diff --git a/symm/hmac-def.h b/symm/hmac-def.h index 9ac8fb9b..76d578d8 100644 --- a/symm/hmac-def.h +++ b/symm/hmac-def.h @@ -359,6 +359,7 @@ HMAC_TESTX(PRE, pre, name, fname) #include +#include #include #include #include @@ -399,7 +400,7 @@ static int macverify(dstr *v) \ csz -= i; \ } \ pre##_macdone(&cctx, d.buf); \ - if (memcmp(d.buf, v[2].buf, PRE##_HASHSZ) != 0) { \ + if (MEMCMP(d.buf, !=, v[2].buf, PRE##_HASHSZ)) { \ printf("\nfail:\n\tstep = %i\n\tinput = `%s'\n\tkey = ", \ *ip, v[0].buf); \ type_hex.dump(&v[1], stdout); \