Home GnuPG

fips,cipher: Implement new FIPS service indicator for cipher_open.

Description

fips,cipher: Implement new FIPS service indicator for cipher_open.

* src/gcrypt.h.in (GCRY_CIPHER_FLAG_REJECT_NON_FIPS): New.
* cipher/cipher.c (_gcry_cipher_open_internal): Don't reject
but mark the service indicator in FIPS mode.
(cipher_setkey): Likewise.
* src/visibility.c (gcry_cipher_open): Initialize the service
indicator.
(gcry_cipher_setkey): Likewise.
  • GnuPG-bug-id: T7338
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Fri, Dec 13, 6:40 AM
Parents
rCfcb0c7004b0b: fips,mac: Implement new FIPS service indicator for gcry_mac_open.
Branches
Unknown
Tags
Unknown
Tasks
T7338: Revamp the FIPS service indicator