--edit-key Information

Werner Koch wk at gnupg.org
Mon Dec 14 17:26:23 CET 2009

On Mon, 14 Dec 2009 09:46:44 -0500 (EST), Gary Hanley wrote:

> Where do I find information about the "D" in "1024D" and the "g" in 
> "4096g"? What are the other potential values?

In the source ;-). gnupg/g10/keyid.c:

  pubkey_letter( int algo )
      switch( algo ) {
        case PUBKEY_ALGO_RSA:	return 'R' ;
        case PUBKEY_ALGO_RSA_E:	return 'r' ;
        case PUBKEY_ALGO_RSA_S:	return 's' ;
        case PUBKEY_ALGO_ELGAMAL_E: return 'g';
        case PUBKEY_ALGO_ELGAMAL: return 'G' ;
        case PUBKEY_ALGO_DSA:	return 'D' ;
        default: return '?';
'G' is not anymore supported; it was used for sign+encrypt Elgamal.
'r' and 's' are also not used for new keys - they have been used in
the past by a PGP variant.

> And although the answer may be obvious or intuitive, is there a source 
> of information that describes the values of the "usage:" flags?

I am not sure whether it is explicitly documented.  In
gnupg/doc/DETAILS you can find the assignments we have:

12. Field:  Key capabilities:
                e = encrypt
                s = sign
                c = certify
                a = authentication
	    A key may have any combination of them in any order.  In
	    addition to these letters, the primary key has uppercase
	    versions of the letters to denote the _usable_
	    capabilities of the entire key, and a potential letter 'D'
	    to indicate a disabled key.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list