Home GnuPG

fips,mac: Implement new FIPS service indicator for gcry_mac_open.

Description

fips,mac: Implement new FIPS service indicator for gcry_mac_open.

* src/gcrypt.h.in (GCRY_MAC_FLAG_REJECT_NON_FIPS): New.
* cipher/mac.c (mac_open): Have FLAGS, instead of SECURE.  Reject when
GCRY_MAC_FLAG_REJECT_NON_FIPS, otherwise, mark non compliant.
(_gcry_mac_open): Follow the change.
* src/visibility.c (gcry_mac_open): Add initialization for FIPS
service indicator.
(gcry_mac_setkey): Likewise.  Don't reject but mark.
  • GnuPG-bug-id: T7338
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Fri, Dec 13, 6:25 AM
Parents
rC917fc6000dfe: fips,tests: Add tests for md_open/write/read/close for t-digest.
Branches
Unknown
Tags
Unknown
Tasks
T7338: Revamp the FIPS service indicator