Home GnuPG

ecc: Improve Montgomery curve implementation.
e61300345060Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

ecc: Improve Montgomery curve implementation.

* cipher/ecc-curves.c (_gcry_ecc_fill_in_curve): Support
MPI_EC_MONTGOMERY.
* cipher/ecc.c (test_ecdh_only_keys): New.
(nist_generate_key): Call test_ecdh_only_keys for MPI_EC_MONTGOMERY.
(check_secret_key): Handle Montgomery curve of x-coordinate only.
* mpi/ec.c (_gcry_mpi_ec_mul_point): Resize points before the loop.
Simplify, using pointers of Q1, Q2, PRD, and SUM.

Details

Provenance
gniibeAuthored on Nov 19 2014, 7:48 AM
Parents
rC95eef21583d8: Disable NEON for CPUs that are known to have broken NEON implementation
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rCe61300345060: ecc: Improve Montgomery curve implementation. (authored by NIIBE Yutaka <gniibe@fsij.org>).Nov 19 2014, 8:03 AM