~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mpx-mul4-*.S: Use more portable type syntax for ambiguous instructions.
[catacomb]
/
symm
/
seal.c
diff --git
a/symm/seal.c
b/symm/seal.c
index
a4a0a3f
..
070550d
100644
(file)
--- a/
symm/seal.c
+++ b/
symm/seal.c
@@
-521,6
+521,7
@@
grand *seal_rand(const void *k, size_t sz, uint32 n)
#include <string.h>
#include <string.h>
+#include <mLib/macros.h>
#include <mLib/testrig.h>
static int verify(dstr *v)
#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);
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');
ok = 0;
printf("*** seal failure\n");
printf("*** k = "); type_hex.dump(&v[0], stdout); putchar('\n');