Home GnuPG

tests: Improve FIPS detection in curves test.

Description

tests: Improve FIPS detection in curves test.

* tests/curves.c (check_matching): When FIPS mode enabled, skip a test
with sample_key_2, which uses brainpoolP160r1 curve.
(check_get_params): Replace "error_expected" filed to "flags" to hold
TEST_ERROR_EXPECTED and/or TEST_NOFIPS.  Put TEST_NOFIPS flags for
non-FIPS curves.  When FIPS mode enabled, don't skip supported curves.

(ChangeLog entry and link to tracker are written by gniibe.)

  • GnuPG-bug-id: T5520
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Sep 10 2021, 6:38 PM
gniibeCommitted on Sep 16 2021, 2:54 AM
Parents
rCf9ae351c954c: tests: Fix typo in comment
Branches
Unknown
Tags
Unknown
Tasks
T5520: Fix tests in FIPS mode