Home GnuPG

basic: gcm-siv: add fips checks for SM4 and CAMELLIA128

Description

basic: gcm-siv: add fips checks for SM4 and CAMELLIA128

* tests/basic.c (check_gcm_siv_cipher): Add 'flags' for test vectors
and set FLAG_NOFIPS for SM4 and CAMELLIA128 test vectors; Add FIPS check
for test vectors; Change printing "aes-gcm-siv" on fail messages to
"algo %d GCM-SIV".

Patch fixes tests/basic failing with "LIBGCRYPT_FORCE_FIPS_MODE=1".

  • Reported-by: Clemens Lang <cllang@redhat.com>
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Aug 1 2022, 7:09 PM
Parents
rCa0c933f6fed0: sm4: fix unused parameter compiler warning
Branches
Unknown
Tags
Unknown