Bug 268335

Summary: Generating a DSA/Elgamal keypair only creates the DSA key
Product: [Applications] kgpg Reporter: redcap <forenhampel>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description redcap 2011-03-13 02:33:52 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

When trying to generate a keypair with the DSA/Elgamal ciphers only the DSA signature key is created. The Elgamal encryption key is not generated.

Reproducible: Always

Steps to Reproduce:
Start kgpg.  Click Keys\Generate Key Pair... Choose DSA/Elgamal. Complete dialog and continue.


Actual Results:  
Only DSA keypair is created.

Expected Results:  
DSA and Elgamal keypairs are created

OS: Linux (i686) release 2.6.36-gentoo-r5
Compiler: i686-pc-linux-gnu-gcc
Comment 1 Rolf Eike Beer 2011-03-13 12:35:48 UTC
Please post the output of "gpg --version". I suspect that algorithm simply isn't available in your version of GnuPG. I need a way to detect that from within KGpg and not show them then.
Comment 2 redcap 2011-03-13 12:48:09 UTC
Here is the output of gpg --version


gpg (GnuPG) 2.0.17
libgcrypt 1.4.6
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, 
        CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2



Some additional information that might be helpful: Creating the keypairs from the command line works without a problem. Also at the command line I am offered the following choices of keys:

(1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)

whereas Kgpg only offers RSA and DSA&ElGamal for keypair generation.
Comment 3 Rolf Eike Beer 2011-03-13 13:57:08 UTC
Sorry, this had nothing to do with the problem I suspected first. It is already fixed in KGpg from SC 4.5/4.6

*** This bug has been marked as a duplicate of bug 245110 ***