aboutsummaryrefslogtreecommitdiffstats
path: root/keymgmt.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-01-31 12:16:43 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-01-31 12:16:43 +0000
commit210548995976ccf8fc164759195c55e6149cfd7f (patch)
treec991b80f266ac30a2b01ae3ab71a28546148ea6e /keymgmt.cpp
parentadded key property dialog (diff)
downloadgpg4usb-210548995976ccf8fc164759195c55e6149cfd7f.tar.gz
gpg4usb-210548995976ccf8fc164759195c55e6149cfd7f.zip
fixed the keysize bug. keys were created wit maximal 1024 bit. Now the El-Gamal key has correct size.
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@252 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-xkeymgmt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp
index 82b5e63..e3d24f7 100755
--- a/keymgmt.cpp
+++ b/keymgmt.cpp
@@ -305,9 +305,10 @@ void KeyMgmt::keyGenAccept()
*/
keyGenParams = "<GnupgKeyParms format=\"internal\">\n"
"Key-Type: DSA\n"
- "Key-Length: "
- + keySizeSpinBox->cleanText() + "\n"
+ "Key-Length: 1024\n"
"Subkey-Type: ELG-E\n"
+ "Subkey-Length: "
+ + keySizeSpinBox->cleanText() + "\n"
"Name-Real: " + nameEdit->text() + "\n";
if (!(commentEdit->text().isEmpty())) {
keyGenParams += "Name-Comment: " + commentEdit->text() + "\n";