Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / symm / cmac-def.h
index 701d3b5..ee8040a 100644 (file)
@@ -323,6 +323,7 @@ CMAC_TESTX(PRE, pre, name, fname)
 #include <stdio.h>
 
 #include <mLib/dstr.h>
+#include <mLib/macros.h>
 #include <mLib/quis.h>
 #include <mLib/testrig.h>
 
@@ -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);                                   \