From 21ac5be7cafaaa833bbc76b1c9138ea685fc8838 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 17 Feb 2020 23:20:49 +0300 Subject: [PATCH] Change generated key type to Ed25519 rPGP generates EdDSA and and ECDH keys using Ed25519 only, so there is no need to specify it explicitly anywhere. --- src/pgp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pgp.rs b/src/pgp.rs index bb9d5331b..97572f6f6 100644 --- a/src/pgp.rs +++ b/src/pgp.rs @@ -150,7 +150,7 @@ pub struct KeyPair { pub(crate) fn create_keypair(addr: EmailAddress) -> std::result::Result { let user_id = format!("<{}>", addr); let key_params = SecretKeyParamsBuilder::default() - .key_type(PgpKeyType::Rsa(2048)) + .key_type(PgpKeyType::EdDSA) .can_create_certificates(true) .can_sign(true) .primary_user_id(user_id) @@ -173,7 +173,7 @@ pub(crate) fn create_keypair(addr: EmailAddress) -> std::result::Result