~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]
/
pub
/
x448.c
diff --git
a/pub/x448.c
b/pub/x448.c
index
6bef9dd
..
70ec10f
100644
(file)
--- a/
pub/x448.c
+++ b/
pub/x448.c
@@
-97,8
+97,8
@@
void x448(octet zz[X448_OUTSZ],
#ifdef TEST_RIG
#ifdef TEST_RIG
+#include <mLib/macros.h>
#include <mLib/report.h>
#include <mLib/report.h>
-#include <mLib/str.h>
#include <mLib/testrig.h>
#include "ct.h"
#include <mLib/testrig.h>
#include "ct.h"
@@
-118,7
+118,7
@@
static int vrf_x448(dstr dv[])
(const octet *)dv[0].buf,
(const octet *)dv[1].buf);
ct_remedy(dz.buf, dz.len);
(const octet *)dv[0].buf,
(const octet *)dv[1].buf);
ct_remedy(dz.buf, dz.len);
- if (
memcmp(dz.buf, dv[2].buf, X448_OUTSZ) != 0
) {
+ if (
MEMCMP(dz.buf, !=, dv[2].buf, X448_OUTSZ)
) {
ok = 0;
fprintf(stderr, "failed!");
fprintf(stderr, "\n\t k = "); type_hex.dump(&dv[0], stderr);
ok = 0;
fprintf(stderr, "failed!");
fprintf(stderr, "\n\t k = "); type_hex.dump(&dv[0], stderr);
@@
-153,7
+153,7
@@
static int vrf_mct(dstr dv[])
}
memcpy(d.buf, k, d.len);
}
memcpy(d.buf, k, d.len);
- if (
memcmp(d.buf, dv[3].buf, d.len) != 0
) {
+ if (
MEMCMP(d.buf, !=, dv[3].buf, d.len)
) {
ok = 0;
fprintf(stderr, "failed...");
fprintf(stderr, "\n\tinitial k = "); type_hex.dump(&dv[0], stderr);
ok = 0;
fprintf(stderr, "failed...");
fprintf(stderr, "\n\tinitial k = "); type_hex.dump(&dv[0], stderr);