~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/dispatch.c: Make `cpuid_feature_p' more easily extensible.
[catacomb]
/
symm
/
cmac-def.h
diff --git
a/symm/cmac-def.h
b/symm/cmac-def.h
index
701d3b5
..
ee8040a
100644
(file)
--- a/
symm/cmac-def.h
+++ b/
symm/cmac-def.h
@@
-323,6
+323,7
@@
CMAC_TESTX(PRE, pre, name, fname)
#include <stdio.h>
#include <mLib/dstr.h>
#include <stdio.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include <mLib/quis.h>
#include <mLib/testrig.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); \
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); \
printf("\nfail:\n\tstep = %i\n\tkey = ", *ip); \
type_hex.dump(&v[0], stdout); \
fputs("\n\tinput = ", stdout); \