1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Support log2_cofactor for Edwards curves (NFC).

This works more or less like the similar refactoring for Montgomery
curves in 7fa0749fcb: where we previously hardwired the clearing of 3
low bits of a private exponent, we now turn that 3 into a curve-
specific constant, so that Ed448 will be able to set it to a different
value.
This commit is contained in:
Simon Tatham
2020-03-02 06:58:03 +00:00
parent b8a08f9321
commit 6c226e4c57
2 changed files with 8 additions and 4 deletions

1
ssh.h
View File

@ -476,6 +476,7 @@ struct ec_ecurve
EdwardsCurve *ec;
EdwardsPoint *G;
mp_int *G_order;
unsigned log2_cofactor;
};
typedef enum EllipticCurveType {