~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]
/
rand
/
tlsprf.c
diff --git
a/rand/tlsprf.c
b/rand/tlsprf.c
index
3f055b0
..
95f5b94
100644
(file)
--- a/
rand/tlsprf.c
+++ b/
rand/tlsprf.c
@@
-249,7
+249,7
@@
static const grand_ops dx_grops = {
"<tlsdx-dummy>",
GRAND_CRYPTO, 0,
dx_grmisc, dx_grdestroy,
"<tlsdx-dummy>",
GRAND_CRYPTO, 0,
dx_grmisc, dx_grdestroy,
- dx_grword, dx_grbyte, dx_grword, grand_range, dx_grfill
+ dx_grword, dx_grbyte, dx_grword, grand_
default
range, dx_grfill
};
/* ---@tlsdx_rand@ --- *
};
/* ---@tlsdx_rand@ --- *
@@
-454,7
+454,7
@@
static const grand_ops prf_grops = {
"<tlsprf-dummy>",
GRAND_CRYPTO, 0,
prf_grmisc, prf_grdestroy,
"<tlsprf-dummy>",
GRAND_CRYPTO, 0,
prf_grmisc, prf_grdestroy,
- prf_grword, prf_grbyte, prf_grword, grand_range, prf_grfill
+ prf_grword, prf_grbyte, prf_grword, grand_
default
range, prf_grfill
};
/* ---@tlsprf_rand@ --- *
};
/* ---@tlsprf_rand@ --- *
@@
-493,6
+493,7
@@
grand *tlsprf_rand(const gcmac *mcx, const gcmac *mcy,
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#include <mLib/macros.h>
#include <mLib/quis.h>
#include <mLib/testrig.h>
#include <mLib/quis.h>
#include <mLib/testrig.h>
@@
-511,7
+512,7
@@
static int v_generate(dstr *v)
d.len = v[2].len;
g->ops->fill(g, d.buf, d.len);
g->ops->destroy(g);
d.len = v[2].len;
g->ops->fill(g, d.buf, d.len);
g->ops->destroy(g);
- if (
memcmp(v[2].buf, d.buf, d.len) != 0
) {
+ if (
MEMCMP(v[2].buf, !=, d.buf, d.len)
) {
ok = 0;
printf("\nfail tlsprf:"
"\n\tkey = ");
ok = 0;
printf("\nfail tlsprf:"
"\n\tkey = ");