diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-14 10:47:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-14 10:47:16 +0100 |
commit | eec9db5e4d9cd5dff638819566024fad8c56a8a1 (patch) | |
tree | dbca98eee9e224476645c18e7d99a7bfe1bf9eb5 /include | |
parent | a3345c7d5b0dd7812f08d2eb8859eedd5623a59e (diff) | |
download | libuecc-eec9db5e4d9cd5dff638819566024fad8c56a8a1.tar libuecc-eec9db5e4d9cd5dff638819566024fad8c56a8a1.zip |
Some more renamed, some utility functions
Diffstat (limited to 'include')
-rw-r--r-- | include/libuecc/ecc.h | 11 |
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_ */ |