Home GnuPG

cipher: Factor functions for ECC selftests.

Description

cipher: Factor functions for ECC selftests.

* cipher/ecc.c: Factor out data for ECC selftests.
(selftest_hash_sign, selftest_sign): Have more arguments.
(selftests_ecc): Rename from selftests_ecdsa, having more args.
Follow the change of selftest_hash_sign, selftest_sign with data.
(run_selftests): Call selftests_ecc with constants of ECDSA.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 9 2023, 8:30 AM
Parents
rCf490ffd739f7: addm/subm/mulm: fix case when destination is same MPI as divider
Branches
Unknown
Tags
Unknown