Commit f22bcf8e authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Use cv25519 for subkey if default key algo is "ed25519"

This makes the changes introduced with the previous commit work if
the default-new-key-algo option is set to "ed25519".

GnuPG-bug-id: 5717
parent 8f87d82e
Pipeline #106017 passed with stage
in 2 minutes and 29 seconds
......@@ -268,8 +268,13 @@ static void parseAlgoString(const QString &algoString, int *size, Subkey::Pubkey
if (lowered.startsWith(QLatin1String("ed25519"))) {
// Special handling for this as technically
// this is a cv25519 curve used for EDDSA
curve = split[0];
*algo = Subkey::AlgoEDDSA;
if (isEncrypt) {
curve = QLatin1String("cv25519");
*algo = Subkey::AlgoECDH;
} else {
curve = split[0];
*algo = Subkey::AlgoEDDSA;
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