Home GnuPG

tests: Skip unsupported mechanisms in FIPS mode

Description

tests: Skip unsupported mechanisms in FIPS mode

* tests/bench-slope.c (cipher_bench_one): Skip GCM mode in FIPS mode
  (ecc_algo_fips_allowed): New function
  (_ecc_bench): Skip algorithms disabled in FIPS mode
  (main): Check for FIPS mode
* tests/benchmark.c (cipher_bench): Skip GCM in FIPS mode

In FIPS mode, not all the curves are allowed. This is already checked in
other parts of the code base, but not in the benchmark test.

  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Jul 13 2021, 9:18 AM
gniibeCommitted on Jul 29 2021, 7:37 AM
Parents
rCf56a33df60dc: tests: Do not expect GCM work in FIPS
Branches
Unknown
Tags
Unknown