Commit 6b09e708 authored by Christian Kandeler's avatar Christian Kandeler

SSH: Switch DSA key generation mode

The mode we currently use is super paranoid about prime checking,
resulting in an unacceptably long key creation time of several minutes.

Task-number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=200657
Reviewed-by: kh1
Reviewed-by: dt
parent cbaa4fc9
......@@ -67,7 +67,7 @@ bool SshKeyGenerator::generateKeys(KeyType type, PrivateKeyFormat format,
if (m_type == Rsa)
key = KeyPtr(new RSA_PrivateKey(rng, keySize));
else
key = KeyPtr(new DSA_PrivateKey(rng, DL_Group(rng, DL_Group::Strong,
key = KeyPtr(new DSA_PrivateKey(rng, DL_Group(rng, DL_Group::DSA_Kosherizer,
keySize)));
return m_format == Pkcs8
? generatePkcs8Keys(key) : generateOpenSslKeys(key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment