Commit 5fffda51 authored by Niels Möller's avatar Niels Möller

Use Edwards curve for curve25519 precomputation.

* eccdata.c: Reorganize curve25519 precomputation to work directly
with the twisted Edwards curve, with new point addition based on a
patch from Daiki Ueno.
* ecc-25519.c (_nettle_curve25519): Update for removed Montgomery
curve constant.
parent 4e7403c5
2017-09-23 Niels Möller <nisse@lysator.liu.se> 2017-09-23 Niels Möller <nisse@lysator.liu.se>
* eccdata.c: Reorganize curve25519 precomputation to work directly
with the twisted Edwards curve, with new point addition based on a
patch from Daiki Ueno.
* ecc-25519.c (_nettle_curve25519): Update for removed Montgomery
curve constant.
* ecc-internal.h (struct ecc_curve): Delete unused pointer * ecc-internal.h (struct ecc_curve): Delete unused pointer
edwards_root. Update all instances. edwards_root. Update all instances.
* eccdata.c (output_curve): Don't output it. * eccdata.c (output_curve): Don't output it.
......
...@@ -349,7 +349,7 @@ const struct ecc_curve _nettle_curve25519 = ...@@ -349,7 +349,7 @@ const struct ecc_curve _nettle_curve25519 =
ecc_mul_g_eh, ecc_mul_g_eh,
ecc_eh_to_a, ecc_eh_to_a,
ecc_d, /* Use the Edwards curve constant. */ ecc_b, /* Edwards curve constant. */
ecc_g, ecc_g,
ecc_unit, ecc_unit,
ecc_table ecc_table
......
This diff is collapsed.
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