aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-05-08 13:21:51 +0000
committerWerner Koch <[email protected]>2020-05-08 13:21:51 +0000
commit439c9b5cb55044f13d4af6563f4e791093d510b0 (patch)
treeb62ba3fc5b5151b89a53533483df4f573eb1b72c /common/util.h
parentsm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA. (diff)
downloadgnupg-439c9b5cb55044f13d4af6563f4e791093d510b0.tar.gz
gnupg-439c9b5cb55044f13d4af6563f4e791093d510b0.zip
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 <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h1
1 files changed, 1 insertions, 0 deletions
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);