~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb]
/
math
/
f25519.c
diff --git
a/math/f25519.c
b/math/f25519.c
index
e9a91f4
..
7f8e66f
100644
(file)
--- a/
math/f25519.c
+++ b/
math/f25519.c
@@
-1178,6
+1178,7
@@
int f25519_quosqrt(f25519 *z, const f25519 *x, const f25519 *y)
#ifdef TEST_RIG
#ifdef TEST_RIG
+#include <mLib/macros.h>
#include <mLib/report.h>
#include <mLib/str.h>
#include <mLib/testrig.h>
#include <mLib/report.h>
#include <mLib/str.h>
#include <mLib/testrig.h>
@@
-1218,7
+1219,7
@@
static void dump_f25519_ref(dstr *d, FILE *fp)
}
static int eq(const f25519 *x, dstr *d)
}
static int eq(const f25519 *x, dstr *d)
- { octet b[32]; f25519_store(b, x); return (
memcmp(b, d->buf, 32) == 0
); }
+ { octet b[32]; f25519_store(b, x); return (
MEMCMP(b, ==, d->buf, 32)
); }
static const test_type
type_f25519 = { cvt_f25519, dump_f25519 },
static const test_type
type_f25519 = { cvt_f25519, dump_f25519 },