--with-colons, key type construction

Andrew McDonald andrew@mcdonald.org.uk
Wed, 20 Dec 2000 23:05:10 +0000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Dec 20, 2000 at 11:57:59PM +0100, Stephan Stapel wrote:

>
> I took a deeper look into the output of the --with-colons command.
> For key type, My public key says, it is '17' and the sub key says it is
> '16'.
>
> Does 16 equal DSA Full (not only Encryption) and 17 El Gamal Encryption
> Only?
> If yes, what codes do
> El Gamal Full (En/ Decryption)
> RSA Full
> RSA Encryption only
> have?
DSA can only do signatures, you can't do encryption with it. Extract from RFC2440: 9.1. Public Key Algorithms ID Algorithm -- --------- 1 - RSA (Encrypt or Sign) 2 - RSA Encrypt-Only 3 - RSA Sign-Only 16 - Elgamal (Encrypt-Only), see [ELGAMAL] 17 - DSA (Digital Signature Standard) 18 - Reserved for Elliptic Curve 19 - Reserved for ECDSA 20 - Elgamal (Encrypt or Sign) 21 - Reserved for Diffie-Hellman (X9.42, as defined for IETF-S/MIME) 100 to 110 - Private/Experimental algorithm. Andrew - -- Andrew McDonald E-mail: andrew@mcdonald.org.uk http://www.mcdonald.org.uk/andrew/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6QTsZ/LupyPLe7TYRAiYZAJ927uxJURwY5ge4FLSW/4Y3PK6OHACfR3C5 WcyuNp1hVlbIp6n+qqwOsBs= =KEKP -----END PGP SIGNATURE----- -- Archive is at http://lists.gnupg.org - Unsubscribe by sending mail with a subject of "unsubscribe" to gnupg-users-request@gnupg.org