Home GnuPG

fips: Introduce GCRYCTL_FIPS_REJECT_NON_FIPS.

Description

fips: Introduce GCRYCTL_FIPS_REJECT_NON_FIPS.

* src/gcrypt.h.in (GCRYCTL_FIPS_REJECT_NON_FIPS): New.
(GCRY_FIPS_FLAG_REJECT_*): New.
* src/fips.c (struct gcry_thread_context): Add flags_reject_non_fips.
(the_tc): Add initial value.
(_gcry_thread_context_set_reject): New.
(_gcry_thread_context_check_rejection): New.
* src/gcrypt-int.h (fips_check_rejection): New.
* src/global.c (_gcry_vcontrol): Handle GCRYCTL_FIPS_REJECT_NON_FIPS.
* tests/t-fips-service-ind.c (main): Use GCRYCTL_FIPS_REJECT_NON_FIPS.
  • GnuPG-bug-id: T7338
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Thu, Dec 19, 3:30 AM
Parents
rCedb43bc29004: fips,cipher: Implement FIPS service indicator for gcry_pk_hash_ API.
Branches
Unknown
Tags
Unknown
Tasks
T7338: Revamp the FIPS service indicator