diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-07-14 21:50:53 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-07-14 21:50:53 +0200 |
commit | a79c2ac58f582bf6e3a07a001c8c65baff47d123 (patch) | |
tree | 33b3e1de31908c26984e93b3c73fac82a1a1cb55 /ecc.h | |
parent | 47dffbfb848552f2eb4de559aa5bbc5b657afc15 (diff) | |
download | nettle-a79c2ac58f582bf6e3a07a001c8c65baff47d123.tar.gz |
Implemented point addition for Edwards curves.
Diffstat (limited to 'ecc.h')
-rw-r--r-- | ecc.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -71,6 +71,8 @@ extern "C" { #define ecc_add_jjj nettle_ecc_add_jjj #define ecc_dup_eh_itch nettle_ecc_dup_eh_itch #define ecc_dup_eh nettle_ecc_dup_eh +#define ecc_add_ehh_itch nettle_ecc_add_ehh_itch +#define ecc_add_ehh nettle_ecc_add_ehh #define ecc_mul_g_itch nettle_ecc_mul_g_itch #define ecc_mul_g nettle_ecc_mul_g #define ecc_mul_a_itch nettle_ecc_mul_a_itch @@ -243,6 +245,13 @@ ecc_dup_eh (const struct ecc_curve *ecc, mp_limb_t *r, const mp_limb_t *p, mp_limb_t *scratch); +mp_size_t +ecc_add_ehh_itch (const struct ecc_curve *ecc); +void +ecc_add_ehh (const struct ecc_curve *ecc, + mp_limb_t *r, const mp_limb_t *p, const mp_limb_t *q, + mp_limb_t *scratch); + /* Computes N * the group generator. N is an array of ecc_size() limbs. It must be in the range 0 < N < group order, then R != 0, and the algorithm can work without any intermediate values getting |