summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-14 10:47:16 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-14 10:47:16 +0100
commiteec9db5e4d9cd5dff638819566024fad8c56a8a1 (patch)
treedbca98eee9e224476645c18e7d99a7bfe1bf9eb5 /include
parenta3345c7d5b0dd7812f08d2eb8859eedd5623a59e (diff)
downloadlibuecc-eec9db5e4d9cd5dff638819566024fad8c56a8a1.tar
libuecc-eec9db5e4d9cd5dff638819566024fad8c56a8a1.zip
Some more renamed, some utility functions
Diffstat (limited to 'include')
-rw-r--r--include/libuecc/ecc.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/libuecc/ecc.h b/include/libuecc/ecc.h
index 9cf2b1e..f535702 100644
--- a/include/libuecc/ecc.h
+++ b/include/libuecc/ecc.h
@@ -45,13 +45,16 @@ typedef struct _ecc_25519_work {
void ecc_25519_load(ecc_25519_work *out, const ecc_public_key_256 *in);
void ecc_25519_store(ecc_public_key_256 *out, const ecc_25519_work *in);
-void ecc_25519_add_secret(ecc_secret_key_256 *out, const ecc_secret_key_256 *in1, const ecc_secret_key_256 *in2);
-void ecc_25519_sub_secret(ecc_secret_key_256 *out, const ecc_secret_key_256 *in1, const ecc_secret_key_256 *in2);
-void ecc_25519_mult_secret(ecc_secret_key_256 *out, const ecc_secret_key_256 *in1, const ecc_secret_key_256 *in2);
-
+int ecc_25519_is_infinity(const ecc_25519_work *in);
void ecc_25519_add(ecc_25519_work *out, const ecc_25519_work *in1, const ecc_25519_work *in2);
void ecc_25519_double(ecc_25519_work *out, const ecc_25519_work *in);
void ecc_25519_scalarmult(ecc_25519_work *out, const ecc_secret_key_256 *n, const ecc_25519_work *base);
void ecc_25519_scalarmult_base(ecc_25519_work *out, const ecc_secret_key_256 *n);
+int ecc_25519_secret_is_zero(const ecc_secret_key_256 *in);
+void ecc_25519_secret_add(ecc_secret_key_256 *out, const ecc_secret_key_256 *in1, const ecc_secret_key_256 *in2);
+void ecc_25519_secret_sub(ecc_secret_key_256 *out, const ecc_secret_key_256 *in1, const ecc_secret_key_256 *in2);
+void ecc_25519_secret_reduce(ecc_secret_key_256 *out, const ecc_secret_key_256 *in);
+void ecc_25519_secret_mult(ecc_secret_key_256 *out, const ecc_secret_key_256 *in1, const ecc_secret_key_256 *in2);
+
#endif /* _LIBUECC_ECC_H_ */