Home GnuPG

fips: Support LIBGCRYPT_FORCE_FIPS_MODE envvar.

Description

fips: Support LIBGCRYPT_FORCE_FIPS_MODE envvar.

* src/fips.c (_gcry_initialize_fips_mode): Check the
environment variable LIBGCRYPT_FORCE_FIPS_MODE.

Useful for developers to test FIPS mode.

  • GnuPG-bug-id: T5541
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Aug 3 2021, 6:14 AM
Parents
rC0ab4e8063729: tests: Verify unsupported KDF tests fail in FIPS mode
Branches
Unknown
Tags
Unknown
Tasks
T5541: Envvar LIBGCRYPT_FORCE_FIPS_MODE