Page MenuHome GnuPG

Include key preferences in --with-colons
Testing, NormalPublic

Description

--with-colons currently doesn't include key preferences.

$ gpg --with-colons --list-key eschwartz@gentoo.org # provides various info
$ gpg --with-colons --list-options show-pref-verbose --list-key eschwartz@gentoo.org # same output

But without --with-colons, they produce different info, namely, --list-options shows:

Cipher: AES256, AES192, AES, CAST5, 3DES
AEAD: 
Digest: SHA512, SHA384, SHA256, SHA224, SHA1
Compression: ZLIB, BZIP2, ZIP, Uncompressed
Features: MDC, Keyserver no-modify

Could this information be included in machine-readable output please?

We want to use this information to check if generated keys for our org aren't misconfigured.

Event Timeline

werner triaged this task as Normal priority.Mon, Nov 3, 4:02 PM

There will be a new "pfc" record to emit the used preferences after a "uid" record. --list-options show-pref must be given.

*** PFC - Preferences on User ID

    - Field 1 :: "pfc"
    - Field 2 :: RFU
    - Field 3 :: Symmetric algo preferences (decimal, comma delimited)
    - Field 4 :: Digest algo preferences (decimal, comma delimited)
    - Field 5 :: Compress algo preferences (decimal, comma delimited)
    - Field 6 :: AEAD algo preferences (decimal, comma delimited)
    - Field 7 :: RFU
    - Field 8 :: RFU
    - Field 9 :: Comma delimited flags.  For example:
                 "mdc", "aead", "no-ks-modify
werner changed the task status from Open to Testing.Mon, Nov 3, 4:45 PM

Will be in 2.5.14 but I am not yet sure whether or when we put support into gpgme