diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2014-11-19 15:48:12 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2014-11-19 16:03:51 +0900 |
commit | e6130034506013d6153465a2bedb6fb08a43f74d (patch) | |
tree | bd1a881ffac12ab5c413c84406d7aa4a9fc07acb /tests/benchmark.c | |
parent | 95eef21583d8e998efc48f22898c1ae31b77cb48 (diff) | |
download | libgcrypt-e6130034506013d6153465a2bedb6fb08a43f74d.tar.gz |
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.
--
Diffstat (limited to 'tests/benchmark.c')
0 files changed, 0 insertions, 0 deletions