X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/e74ca64c0ec65a93d2f133c4472256e3bbb688e2..141c12847a1c2f8cc8db03d420551584e689fb87:/symm/cmac-def.h diff --git a/symm/cmac-def.h b/symm/cmac-def.h index 701d3b52..ee8040a7 100644 --- a/symm/cmac-def.h +++ b/symm/cmac-def.h @@ -323,6 +323,7 @@ CMAC_TESTX(PRE, pre, name, fname) #include #include +#include #include #include @@ -362,7 +363,7 @@ static int macverify(dstr *v) \ csz -= i; \ } \ pre##_cmacdone(&cctx, d.buf); \ - if (memcmp(d.buf, v[2].buf, PRE##_BLKSZ) != 0) { \ + if (MEMCMP(d.buf, !=, v[2].buf, PRE##_BLKSZ)) { \ printf("\nfail:\n\tstep = %i\n\tkey = ", *ip); \ type_hex.dump(&v[0], stdout); \ fputs("\n\tinput = ", stdout); \