~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/scaf.c, etc.: Only need 3*NPIECE words of scratch space.
[catacomb]
/
pub
/
ed448.c
diff --git
a/pub/ed448.c
b/pub/ed448.c
index
a3a9421
..
714987f
100644
(file)
--- a/
pub/ed448.c
+++ b/
pub/ed448.c
@@
-317,7
+317,7
@@
void ed448_sign(octet sig[ED448_SIGSZ],
const void *m, size_t msz)
{
shake_ctx h;
const void *m, size_t msz)
{
shake_ctx h;
- scaf_piece a[NPIECE], r[NPIECE], t[NPIECE], scratch[3*NPIECE
+ 1
];
+ scaf_piece a[NPIECE], r[NPIECE], t[NPIECE], scratch[3*NPIECE];
scaf_dblpiece tt[2*NPIECE];
fgoldi RX, RY, RZ;
octet h1[57], pb[PREFIX_BUFSZ], rb[114];
scaf_dblpiece tt[2*NPIECE];
fgoldi RX, RY, RZ;
octet h1[57], pb[PREFIX_BUFSZ], rb[114];
@@
-376,7
+376,7
@@
int ed448_verify(const octet K[ED448_PUBSZ],
const octet sig[ED448_SIGSZ])
{
shake_ctx h;
const octet sig[ED448_SIGSZ])
{
shake_ctx h;
- scaf_piece s[NPIECE], t[NPIECE], scratch[3*NPIECE
+ 1
];
+ scaf_piece s[NPIECE], t[NPIECE], scratch[3*NPIECE];
scaf_dblpiece tt[2*NPIECE];
fgoldi AX, AY, AZ, RX, RY, RZ;
octet b[PREFIX_BUFSZ];
scaf_dblpiece tt[2*NPIECE];
fgoldi AX, AY, AZ, RX, RY, RZ;
octet b[PREFIX_BUFSZ];