From 818c20e0cbe25e7180aa580be929e9cd43e87a59 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 27 Mar 2020 19:56:26 +0100 Subject: [PATCH] switch to ecc keys after fixing some issues wrt ecc keys, see #1319, and waiting some time (three core releases, two ios/android/desktop releases), it is now the time to switch again to ecc keys again, after the first attempt was stopped in #1319 --- src/pgp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pgp.rs b/src/pgp.rs index e4f1534f9..64d64e095 100644 --- a/src/pgp.rs +++ b/src/pgp.rs @@ -153,8 +153,8 @@ pub(crate) fn create_keypair( keygen_type: KeyGenType, ) -> std::result::Result { let (secret_key_type, public_key_type) = match keygen_type { - KeyGenType::Rsa2048 | KeyGenType::Default => (PgpKeyType::Rsa(2048), PgpKeyType::Rsa(2048)), - KeyGenType::Ed25519 => (PgpKeyType::EdDSA, PgpKeyType::ECDH), + KeyGenType::Rsa2048 => (PgpKeyType::Rsa(2048), PgpKeyType::Rsa(2048)), + KeyGenType::Ed25519 | KeyGenType::Default => (PgpKeyType::EdDSA, PgpKeyType::ECDH), }; let user_id = format!("<{}>", addr);