summaryrefslogtreecommitdiff
path: root/eddsa-verify.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2019-12-18 08:15:55 +0100
committerNiels Möller <nisse@lysator.liu.se>2019-12-18 08:15:55 +0100
commit6d455c6d3c6a7011fb51f38bb9423a7aff34f00b (patch)
tree99351efe701bb36bf4c0167f2e2ccb6acc294414 /eddsa-verify.c
parent4487719f5fcdf5222c9a35114bde6e5d3238a03d (diff)
downloadnettle-6d455c6d3c6a7011fb51f38bb9423a7aff34f00b.tar.gz
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.
Diffstat (limited to 'eddsa-verify.c')
-rw-r--r--eddsa-verify.c2
1 files changed, 1 insertions, 1 deletions
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);