summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-17 15:15:02 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-17 15:15:02 +0100
commit89d237f36b932dcacda031921bb961c24c3aa596 (patch)
tree71942aad09abc8860d2dbae8d41b2aa239ec3d98 /include
parent3ea1ba496ece8d6e0e90b4b6f32b59ae62052cda (diff)
downloadlibuecc-89d237f36b932dcacda031921bb961c24c3aa596.tar
libuecc-89d237f36b932dcacda031921bb961c24c3aa596.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/libuecc/ecc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libuecc/ecc.h b/include/libuecc/ecc.h
index a422ecb..e2fc545 100644
--- a/include/libuecc/ecc.h
+++ b/include/libuecc/ecc.h
@@ -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;