]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Use function pointer rather than calling ecc_add_eh directly.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 18 Dec 2019 07:15:55 +0000 (08:15 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 18 Dec 2019 07:15:55 +0000 (08:15 +0100)
* eddsa-verify.c (_eddsa_verify): Use function pointer rather than
calling ecc_add_eh directly. Preparation for eddsa over curve448.

ChangeLog
eddsa-verify.c

index ad19b70cfa41dd820e06c6c057efcd194e41063c..e3fc8542c5b62a367661bdcf3edc867dc783fb0d 100644 (file)
--- 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
index 7718a1260463569156e2cea99b8aba5f2deee152..8a623562057d4dd52f622e765d4519bfc2eb16e3 100644 (file)
@@ -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);