Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / symm / seal.c
index a4a0a3f..070550d 100644 (file)
@@ -521,6 +521,7 @@ grand *seal_rand(const void *k, size_t sz, uint32 n)
 
 #include <string.h>
 
+#include <mLib/macros.h>
 #include <mLib/testrig.h>
 
 static int verify(dstr *v)
@@ -543,7 +544,7 @@ static int verify(dstr *v)
     seal_initctx(&c, &k, n);
     seal_encrypt(&c, 0, d.buf, i);
     seal_encrypt(&c, z.buf, d.buf + i, d.len - i);
-    if (memcmp(d.buf, v[2].buf, d.len) != 0) {
+    if (MEMCMP(d.buf, !=, v[2].buf, d.len)) {
       ok = 0;
       printf("*** seal failure\n");
       printf("*** k = "); type_hex.dump(&v[0], stdout); putchar('\n');