Commit 6d455c6d authored by Niels Möller's avatar Niels Möller

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.
parent 4487719f
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> 2019-12-17 Niels Möller <nisse@lysator.liu.se>
* examples/ecc-benchmark.c (bench_dup_hh): Rename, and use * examples/ecc-benchmark.c (bench_dup_hh): Rename, and use
......
...@@ -114,7 +114,7 @@ _eddsa_verify (const struct ecc_curve *ecc, ...@@ -114,7 +114,7 @@ _eddsa_verify (const struct ecc_curve *ecc,
/* Compute h A + R - s G, which should be the neutral point */ /* Compute h A + R - s G, which should be the neutral point */
ecc->mul (ecc, P, hp, A, scratch_out); 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. */ /* Move out of the way. */
mpn_copyi (hp, sp, ecc->q.size); mpn_copyi (hp, sp, ecc->q.size);
ecc->mul_g (ecc, S, hp, scratch_out); ecc->mul_g (ecc, S, hp, scratch_out);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment