summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-01-22 21:25:25 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-01-22 21:25:25 +0100
commit1a5fdede16498c6306b02f4ab8c81af4ccf7c289 (patch)
tree9f7d7d34fa69dc0455fbb2b571689eb432473108 /include
parentcaf543ccfde9f2f7786219209839af5ff42b050d (diff)
downloadlibuecc-1a5fdede16498c6306b02f4ab8c81af4ccf7c289.tar
libuecc-1a5fdede16498c6306b02f4ab8c81af4ccf7c289.zip
Add reduced-bitlength scalar multiplication
Diffstat (limited to 'include')
-rw-r--r--include/libuecc/ecc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libuecc/ecc.h b/include/libuecc/ecc.h
index c456ac3..46cfaa9 100644
--- a/include/libuecc/ecc.h
+++ b/include/libuecc/ecc.h
@@ -64,7 +64,10 @@ void ecc_25519_store_packed(ecc_int256_t *out, const ecc_25519_work_t *in);
int ecc_25519_is_identity(const ecc_25519_work_t *in);
void ecc_25519_double(ecc_25519_work_t *out, const ecc_25519_work_t *in);
void ecc_25519_add(ecc_25519_work_t *out, const ecc_25519_work_t *in1, const ecc_25519_work_t *in2);
+
+void ecc_25519_scalarmult_bits(ecc_25519_work_t *out, const ecc_int256_t *n, const ecc_25519_work_t *base, unsigned bits);
void ecc_25519_scalarmult(ecc_25519_work_t *out, const ecc_int256_t *n, const ecc_25519_work_t *base);
+void ecc_25519_scalarmult_base_bits(ecc_25519_work_t *out, const ecc_int256_t *n, unsigned bits);
void ecc_25519_scalarmult_base(ecc_25519_work_t *out, const ecc_int256_t *n);
/**@}*/