From 5c29d25e6c7c0a5a63ab4c46d4624217307adb78 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 7 May 2020 09:45:49 +0200 Subject: sm: Print the key types as standard key algorithm strings. * sm/fingerprint.c (gpgsm_get_key_algo_info): Factor code out to ... (gpgsm_get_key_algo_info2): new. (gpgsm_pubkey_algo_string): New. * sm/keylist.c (list_cert_colon): Put curve into field 17 (list_cert_raw): Print the unified key algotithm string instead of the algo and size. (list_cert_std): Ditto. -- It is important to known whether a 256 bit ECC uses a NIST or a Brainpool curve. Signed-off-by: Werner Koch --- common/openpgp-oid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/openpgp-oid.c') diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c index 8fda23028..55f8f432d 100644 --- a/common/openpgp-oid.c +++ b/common/openpgp-oid.c @@ -540,9 +540,9 @@ map_openpgp_pk_to_gcry (pubkey_algo_t algo) /* Return a string describing the public key algorithm and the * keysize. For elliptic curves the function prints the name of the * curve because the keysize is a property of the curve. ALGO is the - * Gcrypt algorithmj number, curve is either NULL or give the PID of - * the curve, NBITS is either 0 or the size of the algorithms for RSA - * etc. The returned string is taken from permanent table. Examples + * Gcrypt algorithm number, CURVE is either NULL or gives the OID of + * the curve, NBITS is either 0 or the size for algorithms like RSA. + * The returned string is taken from permanent table. Examples * for the output are: * * "rsa3072" - RSA with 3072 bit -- cgit v1.2.3