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:
Matthias Schiffer 2012-03-17 15:15:02 +01:00
parent 3ea1ba496e
commit 89d237f36b
2 changed files with 75 additions and 70 deletions

View file

@ -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;