Page MenuHome GnuPG

gpg2 --expert --gen-key doesn't allow Elgamal > 3072
Closed, ResolvedPublic

Description

When generating a DSA key with Elgamal subkey (option 2) the subkey is limited
to DSA keysize. See the following transcript:

$ gpg2 --gen-key --expert
Please select what kind of key you want:

(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
(7) DSA (set your own capabilities)
(8) RSA (set your own capabilities)

Your selection? 2
DSA keys may be between 512 and 3072 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
DSA keys may be between 512 and 3072 bits long.
What keysize do you want for the subkey? (2048) 4096
DSA keysizes must be in the range 512-3072

Details

Version
2.0.12

Related Objects

Event Timeline

schot set Version to 2.0.12.
schot added a subscriber: schot.

I looked at the source code and believe to have found the problem. Attached is a
diff against the latest svn that fixes this issue.

Fixed in svn 5083. Will be backported to 1.4 if needed.
Thanks.

werner added a project: backport.

Fixed in 1.4 since 2009-07-23.
Released with 1.4.10.

werner claimed this task.
werner removed a project: Restricted Project.
werner removed a project: backport.