From: Niels Möller Date: Wed, 18 Dec 2019 07:15:55 +0000 (+0100) Subject: Use function pointer rather than calling ecc_add_eh directly. X-Git-Tag: nettle_3.6rc1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d455c6d3c6a7011fb51f38bb9423a7aff34f00b;p=thirdparty%2Fnettle.git Use function pointer rather than calling ecc_add_eh directly. * eddsa-verify.c (_eddsa_verify): Use function pointer rather than calling ecc_add_eh directly. Preparation for eddsa over curve448. --- diff --git a/ChangeLog b/ChangeLog index ad19b70c..e3fc8542 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-12-18 Niels Möller + + * eddsa-verify.c (_eddsa_verify): Use function pointer rather than + calling ecc_add_eh directly. Preparation for eddsa over curve448. + 2019-12-17 Niels Möller * examples/ecc-benchmark.c (bench_dup_hh): Rename, and use diff --git a/eddsa-verify.c b/eddsa-verify.c index 7718a126..8a623562 100644 --- a/eddsa-verify.c +++ b/eddsa-verify.c @@ -114,7 +114,7 @@ _eddsa_verify (const struct ecc_curve *ecc, /* Compute h A + R - s G, which should be the neutral point */ ecc->mul (ecc, P, hp, A, scratch_out); - ecc_add_eh (ecc, P, P, R, scratch_out); + ecc->add_hh (ecc, P, P, R, scratch_out); /* Move out of the way. */ mpn_copyi (hp, sp, ecc->q.size); ecc->mul_g (ecc, S, hp, scratch_out);