mirror of
https://github.com/neocturne/libuecc.git
synced 2025-07-06 23:19:07 +02:00
Switch from inverted to extended coordinate representation
In inverted coordinates there are 4 points that aren't representable correctly. Avoid this problem by using the extended coordinate representation, in which an add+double operation has essentially the same performance as in the inverted representation.
This commit is contained in:
parent
3ea1ba496e
commit
89d237f36b
2 changed files with 75 additions and 70 deletions
|
@ -39,6 +39,7 @@ typedef struct _ecc_25519_work {
|
|||
unsigned int X[32];
|
||||
unsigned int Y[32];
|
||||
unsigned int Z[32];
|
||||
unsigned int T[32];
|
||||
} ecc_25519_work;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue