summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--eddsa-verify.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ad19b70c..e3fc8542 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-18 Niels Möller <nisse@lysator.liu.se>
+
+ * 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 <nisse@lysator.liu.se>
* 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);