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

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.

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));
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,
return m_format == Pkcs8
? generatePkcs8Keys(key) : generateOpenSslKeys(key);
Supports Markdown
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