~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/asm-common.h (x86), and knock-on: Add macros for full-size regs.
[catacomb]
/
symm
/
keccak1600.c
diff --git
a/symm/keccak1600.c
b/symm/keccak1600.c
index
c2d8292
..
cfbfdef
100644
(file)
--- a/
symm/keccak1600.c
+++ b/
symm/keccak1600.c
@@
-649,6
+649,7
@@
void keccak1600_extract(const keccak1600_state *s, kludge64 *p, size_t n)
#include <stdio.h>
#include <stdio.h>
+#include <mLib/macros.h>
#include <mLib/quis.h>
#include <mLib/report.h>
#include <mLib/testrig.h>
#include <mLib/quis.h>
#include <mLib/report.h>
#include <mLib/testrig.h>
@@
-673,7
+674,7
@@
static int vrf_p(dstr v[])
keccak1600_p(&u, &u, n);
keccak1600_extract(&u, t, 25);
for (i = 0; i < 25; i++) STORE64_L_(d.buf + 8*i, t[i]);
keccak1600_p(&u, &u, n);
keccak1600_extract(&u, t, 25);
for (i = 0; i < 25; i++) STORE64_L_(d.buf + 8*i, t[i]);
- if (
memcmp(d.buf, v[2].buf, 200) != 0
) {
+ if (
MEMCMP(d.buf, !=, v[2].buf, 200)
) {
ok = 0;
fprintf(stderr, "failed!");
fprintf(stderr, "\n\t input = "); type_hex.dump(&v[0], stderr);
ok = 0;
fprintf(stderr, "failed!");
fprintf(stderr, "\n\t input = "); type_hex.dump(&v[0], stderr);