~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
/
ed25519.c
diff --git
a/pub/ed25519.c
b/pub/ed25519.c
index
2dc1161
..
f23c272
100644
(file)
--- a/
pub/ed25519.c
+++ b/
pub/ed25519.c
@@
-319,7
+319,7
@@
void ed25519ctx_sign(octet sig[ED25519_SIGSZ],
const void *m, size_t msz)
{
sha512_ctx h;
const void *m, size_t msz)
{
sha512_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];
f25519 RX, RY, RZ;
octet h1[32], pb[PREFIX_BUFSZ], rb[SHA512_HASHSZ];
scaf_dblpiece tt[2*NPIECE];
f25519 RX, RY, RZ;
octet h1[32], pb[PREFIX_BUFSZ], rb[SHA512_HASHSZ];
@@
-388,7
+388,7
@@
int ed25519ctx_verify(const octet K[ED25519_PUBSZ],
const octet sig[ED25519_SIGSZ])
{
sha512_ctx h;
const octet sig[ED25519_SIGSZ])
{
sha512_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];
f25519 AX, AY, AZ, RX, RY, RZ;
octet b[PREFIX_BUFSZ];
scaf_dblpiece tt[2*NPIECE];
f25519 AX, AY, AZ, RX, RY, RZ;
octet b[PREFIX_BUFSZ];