Home GnuPG

tests: Improve error checking in regards to FIPS

Description

tests: Improve error checking in regards to FIPS

* tests/basic.c (check_cbc_mac_cipher): Improve verbose alignment
  (check_ecb_cipher): Improve verbose message alignment.
  (check_ctr_cipher): Improve verbose message alignment.
  (check_cfb_cipher): Improve verbose message alignment and error
  reporting.
  (check_ofb_cipher): Improve verbose message alignment and error
  reporting.
  (_check_gcm_cipher): Improve error checking.
  (_check_eax_cipher): Improve error checking.
  (check_siv_cipher): Improve error checking.
  (check_gcm_siv_cipher): Improve error checking and indentation.
  (_check_poly1305_cipher): Improve verbose message alignment.
  (check_ccm_cipher): Improve verbose message alignment.
  (do_check_ocb_cipher): Improve error checking.
  (check_ocb_cipher_largebuf_split): Improve error checking.
  (check_ocb_cipher_checksum): Improve error checking.
  (check_ocb_cipher_splitaad): Improve error checking.
  (check_gost28147_cipher_basic): Improve verbose message alignment.
  (check_stream_cipher): Improve verbose message alignment.
  (check_one_cipher_core): Improve error checking.
  (check_ciphers): Improve error checking.
  (check_pubkey): Check explicitly the for failure in FIPS mode.
  • GnuPG-bug-id: T5512
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Nov 5 2021, 2:13 PM
gniibeCommitted on Dec 1 2021, 6:20 AM
Parents
rC23a58b779e31: Disable 3DES in FIPS mode
Branches
Unknown
Tags
Unknown