Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / pub / rsa-test.c
index 34b2a1f..2ee6bbc 100644 (file)
@@ -27,6 +27,8 @@
 
 /*----- Header files ------------------------------------------------------*/
 
+#include <mLib/macros.h>
+
 #include "fibrand.h"
 #include "rsa.h"
 
@@ -69,7 +71,7 @@ static int tencpad(int nbits,
 #define tsigpad tencpad
 
 #define DSTR_EQ(x, y)                                                  \
-  ((x)->len == (y)->len && !memcmp((x)->buf, (y)->buf, (x)->len))
+  ((x)->len == (y)->len && MEMCMP((x)->buf, ==, (y)->buf, (x)->len))
 
 static int tdecpad(int nbits,
                   mp *c, int rc, dstr *p,