ecc: field specific routines for 25519.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 22 Aug 2017 23:48:53 +0000 (08:48 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Aug 2017 01:14:08 +0000 (10:14 +0900)
commit9ed0fb37bd637d1a2e9498c24097cfeadec682ec
tree58f9a77fc102babc8192d8ee432dff77900a4df8
parentd4cd381defe5b37dda19bbda0986bdd38065bd31
ecc: field specific routines for 25519.

* mpi/ec.c (point_resize): Improve for X25519.
(mpih_set_cond): New.
(ec_mod_25519, ec_addm_25519, ec_subm_25519, ec_mulm_25519)
(ec_mul2_25519, ec_pow2_25519): New.
(ec_p_init): Fill by FIELD_TABLE.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
mpi/ec.c