Home GnuPG

cipher: Don't differentiate GCRY_CIPHER_MODE_CMAC in FIPS mode.

Description

cipher: Don't differentiate GCRY_CIPHER_MODE_CMAC in FIPS mode.

* cipher/cipher.c (_gcry_cipher_mode_fips_compliance): Allow
GCRY_CIPHER_MODE_CMAC in fips mode.
* cipher/cipher.c (cipher_modes_fips_compliance)
(cipher_int_modes_fips_compliance): New.

Added some comments, changed scope of the new functions and shorted
their names. Also added restructured the switch and added all other
modes.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
Lucas Mulling <lucas.mulling@suse.com>Authored on Sun, Feb 2, 4:58 PM
wernerCommitted on Wed, Feb 12, 9:48 AM
Parents
rC6b0fbb7e5e0d: cipher: Rename _gcry_cipher_is_mode_fips_compliant
Branches
Unknown
Tags
Unknown