From 1a5fdede16498c6306b02f4ab8c81af4ccf7c289 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 22 Jan 2015 21:25:25 +0100 Subject: Add reduced-bitlength scalar multiplication --- include/libuecc/ecc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); /**@}*/ -- cgit v1.2.3