ecc: Add field specific computation methods.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 21 Aug 2017 05:32:08 +0000 (14:32 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Aug 2017 01:14:08 +0000 (10:14 +0900)
commitd4cd381defe5b37dda19bbda0986bdd38065bd31
tree4b68c7472e4e1ff850425ed96539a29a14b58125
parent52af575ae4d6961edf459d5ba7f7a8057ed4cb80
ecc: Add field specific computation methods.

* src/ec-context.h (struct mpi_ec_ctx_s): Add methods.
* mpi/ec.c (ec_p_init): Initialize the default methods.
(montgomery_ladder): Use the methods.

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