Home GnuPG

tests/t-mpi-point: add reduction test-vectors for NIST curves.

Description

tests/t-mpi-point: add reduction test-vectors for NIST curves.

* tests/t-mpi-point.c (check_ec_mul_reduction): New.
(main): Call 'check_ec_mul_reduction'.

This is partial cherry-pick of master commit:
fc92c609dfdbcf59a09ca3aaf53a1c1b8408c351 (ec-nist: fix 'mod p' carry
adjustment and output masking).

  • GnuPG-bug-id: T5510
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jun 28 2021, 8:01 PM
gniibeCommitted on Sep 28 2021, 3:49 AM
Parents
rC1240f218dd89: libtool: Link without -flat_namespace for macOS.
Branches
Unknown
Tags
Unknown
Tasks
T5510: libgcrypt: incorrect computation for secp192r1