summaryrefslogtreecommitdiff
path: root/tests/benchmark.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2014-11-19 15:48:12 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2014-11-19 16:03:51 +0900
commite6130034506013d6153465a2bedb6fb08a43f74d (patch)
treebd1a881ffac12ab5c413c84406d7aa4a9fc07acb /tests/benchmark.c
parent95eef21583d8e998efc48f22898c1ae31b77cb48 (diff)
downloadlibgcrypt-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