Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / pub / pss.c
index 8e77b78..137b876 100644 (file)
--- a/pub/pss.c
+++ b/pub/pss.c
@@ -32,6 +32,7 @@
 #include <mLib/alloc.h>
 #include <mLib/bits.h>
 #include <mLib/dstr.h>
+#include <mLib/macros.h>
 
 #include "gcipher.h"
 #include "ghash.h"
@@ -174,7 +175,7 @@ int pss_decode(mp *mi, const void *m, size_t msz, octet *b, size_t sz,
   GH_HASH(h, m, msz);
   GH_HASH(h, s, pp->ssz);
   s = GH_DONE(h, 0);
-  rc = !memcmp(s, r, hsz);
+  rc = MEMCMP(s, ==, r, hsz);
   GH_DESTROY(h);
   if (!rc) return (-1);