Home GnuPG
Diffusion GnuPG 06b70daa505d

gpg: Print info about the used AEAD algorithm in the compliance msg.

Description

gpg: Print info about the used AEAD algorithm in the compliance msg.

* g10/misc.c (openpgp_cipher_algo_mode_name): New.
* g10/decrypt-data.c (decrypt_data): Use function here.

Note that openpgp_cipher_algo_mode_name is different from the version
2.2 becuase we append ".CFB" here.

Without this change we would see

gpg: cipher algorithm 'AES256' may not be used in
--compliance=de-vs mode

This is confusing because AES256 is compliant. Now we see

gpg: cipher algorithm 'AES256.OCB' may not be used in
--compliance=de-vs mode

which gives a hint on the problem.

Details

Provenance
wernerAuthored on Mar 18 2022, 1:50 PM
Parents
rG449d2fbcde63: common: New function map_static_strings
Branches
Unknown
Tags
Unknown