Bug 245110 - Wrong key pair creation via KGpg gui.
Summary: Wrong key pair creation via KGpg gui.
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
: 245363 268335 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-19 10:30 UTC by atnt
Modified: 2011-03-13 13:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description atnt 2010-07-19 10:30:10 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

1) I try to create a key pair using KGpg gui. I launch the wizard and follow all the steps it requires. Finally, I get a key pair but the size of key is indicated to be "1024 / 0".

2) I launch Dolphin, find any text file that i want to encrypt. I right click on it, go to Actions -> Ecnrypt. It offers me key selection. I select recently created key and start encryption. But the encryption fails with "Process halted Not all files were encrypted.".

However, if i create a key pair via
$ gpg --gen-key
I get a valid key pair appears in KGpg gui (but only after KGpg restart) with size "1024 / 1024" (and with a subkey). If i try to encrypt a file from a Dolphin it succeeds.

Note: KGpg version 2.3.0. Didn't specify that, because the Application combobox doesn't have such version listed in it.

Reproducible: Always

Steps to Reproduce:
1) Run KGpg
2) Ctrl+N
3) Follow key pair creation process.
4) Dolphin
5) Select a file to encrypt
6) Choose a key you have created

Actual Results:  
File encryption fails with the following error message "Process halted Not all files were encrypted."

Expected Results:  
File is successfully encrypted.

OS: Linux (i686) release 2.6.27.29-0.1-default
Compiler: gcc

Distro: openSUSE 11.1
KDE 4.4.5
Comment 1 Rolf Eike Beer 2010-07-22 08:04:08 UTC
*** Bug 245363 has been marked as a duplicate of this bug. ***
Comment 2 spamfang1199 2010-07-22 14:30:50 UTC
It should be mentioned that keygenartion works fine, when using the expert mode.
Comment 3 atnt 2010-07-22 15:11:44 UTC
(In reply to comment #2)
> It should be mentioned that keygenartion works fine, when using the expert
> mode.

Expert mode is the same as running 'gpg --gen-key' which I mentioned that.
Comment 4 Rolf Eike Beer 2010-07-26 20:35:33 UTC
Fixed by commits 1155014 (trunk) and 1155020 (4.4/4.5)
Comment 5 Rolf Eike Beer 2010-07-26 22:49:14 UTC
SVN commit 1155014 by dakon:

if user requests creation of DSA&ElGamal tell GnuPG to also generate the ElGamal key

BUG:245110

 M  +1 -1      kgpggeneratekey.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1155014
Comment 6 Rolf Eike Beer 2010-07-26 22:54:14 UTC
SVN commit 1155016 by dakon:

if user requests creation of DSA&ElGamal tell GnuPG to also generate the ElGamal key

CCBUG:245110
FIXEDIN:4.5.0

backport of r1155014


 M  +1 -1      4.4/kdeutils/kgpg/transactions/kgpggeneratekey.cpp  
 M  +1 -1      4.5/kdeutils/kgpg/transactions/kgpggeneratekey.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1155016
Comment 7 Rolf Eike Beer 2011-03-13 13:57:08 UTC
*** Bug 268335 has been marked as a duplicate of this bug. ***