From: Mark Wooding Date: Fri, 1 Mar 2019 12:21:38 +0000 (+0000) Subject: math/f25519.c: Order 10-bit constants the same as 26-bit constants. X-Git-Tag: 2.5.0~18 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/68012cc7915db546ea09027d41c1360e3a5921c0?hp=89bd399d7d3fdeb58f7a442bcd139b707e08e8d0 math/f25519.c: Order 10-bit constants the same as 26-bit constants. --- diff --git a/math/f25519.c b/math/f25519.c index d715033d..a886465e 100644 --- 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 -#define B9 0x200 -#define B8 0x100 #define M10 0x3ff #define M9 0x1ff +#define B9 0x200 +#define B8 0x100 #endif