From 439c9b5cb55044f13d4af6563f4e791093d510b0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 May 2020 15:21:51 +0200 Subject: sm: Print algorithm infos in data decryption mode. * common/sexputil.c (cipher_mode_to_string): New. * sm/decrypt.c (prepare_decryption): Show cipher algo and mode. (gpgsm_decrypt): Show key algo and fingerprint Signed-off-by: Werner Koch --- common/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/util.h') diff --git a/common/util.h b/common/util.h index f2b4306c3..b5bdd0385 100644 --- a/common/util.h +++ b/common/util.h @@ -204,6 +204,7 @@ int get_pk_algo_from_canon_sexp (const unsigned char *keydata, char *pubkey_algo_string (gcry_sexp_t s_pkey, enum gcry_pk_algos *r_algoid); const char *pubkey_algo_to_string (int algo); const char *hash_algo_to_string (int algo); +const char *cipher_mode_to_string (int mode); /*-- convert.c --*/ int hex2bin (const char *string, void *buffer, size_t length); -- cgit v1.2.3