aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyid.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-11-07 10:06:00 +0000
committerWerner Koch <[email protected]>2025-11-07 10:06:09 +0000
commitff916a05c434835cb615b9b889793e6af1a977a5 (patch)
treeb30f8b2dc7d69517fa504a3375372a2fc697dc9d /g10/keyid.c
parentagent: Fix wiping memory in PKDECRYPT command. (diff)
downloadgnupg-master.tar.gz
gnupg-master.zip
gpg: Improve --list-packets for algorithm 8HEADmaster
* g10/parse-packet.c (parse_key): Tweak list mode and implement printing of "kyNNN_foo instead of just the second algos curve.
Diffstat (limited to 'g10/keyid.c')
-rw-r--r--g10/keyid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/keyid.c b/g10/keyid.c
index bdbe90b21..f480f8155 100644
--- a/g10/keyid.c
+++ b/g10/keyid.c
@@ -873,7 +873,8 @@ namehash_from_uid (PKT_user_id *uid)
/*
* Return the number of bits used in PK. For Kyber we return the
* octet count of the Kyber part and not of the ECC (thus likely
- * values are 768 or 1024).
+ * values are 768 or 1024). Note that this function may be called
+ * with only pubkey_algo and pkey[] correctly set.
*/
unsigned int
nbits_from_pk (PKT_public_key *pk)