Re: --edit-key Information

2009-12-14 Thread Werner Koch
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:

  int
  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.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: --edit-key Information

2009-12-14 Thread Daniel Kahn Gillmor
On 12/14/2009 11:26 AM, Werner Koch wrote:
 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:

maybe this info could go in DETAILS as well?

 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

If you're curious about what these words themselves mean in the context
of OpenPGP, you might be interested in the relevant section of the
OpenPGP RFC:

 http://tools.ietf.org/html/rfc4880#section-5.2.3.21

hth,

--dkg



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users