aboutsummaryrefslogtreecommitdiffstats
path: root/common/openpgp-oid.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-05-07 07:45:49 +0000
committerWerner Koch <[email protected]>2020-05-07 07:45:49 +0000
commit5c29d25e6c7c0a5a63ab4c46d4624217307adb78 (patch)
treef0db0cd96dba84e83982034af3325320542f33ea /common/openpgp-oid.c
parentscd:nks: Support decryption using ECDH. (diff)
downloadgnupg-5c29d25e6c7c0a5a63ab4c46d4624217307adb78.tar.gz
gnupg-5c29d25e6c7c0a5a63ab4c46d4624217307adb78.zip
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 <[email protected]>
Diffstat (limited to 'common/openpgp-oid.c')
-rw-r--r--common/openpgp-oid.c6
1 files changed, 3 insertions, 3 deletions
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