Home GnuPG

bench-slope: add X25519 and X448 scalar multiplication

Description

bench-slope: add X25519 and X448 scalar multiplication

* tests/bench-slope.c (ECC_ALGO_X25519, ECC_ALGO_X448): New.
(ecc_algo_name, ecc_algo_curve, ecc_nbits): Add X25519 and X448.
(bench_ecc_mult_do_bench): Pass Y as NULL to ec_get_affine with
X25519 and X448.
(cipher_ecc_one): Run only multiplication bench for X25519 and X448.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jun 16 2021, 7:27 PM
Parents
rC2fcac487069f: mpi: optimizations for MPI scanning and printing
Branches
Unknown
Tags
Unknown