chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
89bd399
)
math/f25519.c: Order 10-bit constants the same as 26-bit constants.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 1 Mar 2019 12:21:38 +0000
(12:21 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 1 Mar 2019 19:14:14 +0000
(19:14 +0000)
math/f25519.c
patch
|
blob
|
blame
|
history
diff --git
a/math/f25519.c
b/math/f25519.c
index d715033d80fce85bbcf0e3cbe15b05c469f73b24..a886465ebe841ba66faa2f004b7bd9d12452ee7b 100644
(file)
--- a/
math/f25519.c
+++ b/
math/f25519.c
@@
-82,10
+82,10
@@
typedef uint16 upiece; typedef uint32 udblpiece;
((i) == 5 || (i) == 10 || (i) == 15 || (i) == 20 || (i) == 25 ? 9 : 10)
#define NPIECE 26
((i) == 5 || (i) == 10 || (i) == 15 || (i) == 20 || (i) == 25 ? 9 : 10)
#define NPIECE 26
-#define B9 0x200
-#define B8 0x100
#define M10 0x3ff
#define M9 0x1ff
#define M10 0x3ff
#define M9 0x1ff
+#define B9 0x200
+#define B8 0x100
#endif
#endif