mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
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.
This commit is contained in:
committed by
holger krekel
parent
e14a113277
commit
21ac5be7ca
@@ -150,7 +150,7 @@ pub struct KeyPair {
|
||||
pub(crate) fn create_keypair(addr: EmailAddress) -> std::result::Result<KeyPair, PgpKeygenError> {
|
||||
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<KeyPair,
|
||||
])
|
||||
.subkey(
|
||||
SubkeyParamsBuilder::default()
|
||||
.key_type(PgpKeyType::Rsa(2048))
|
||||
.key_type(PgpKeyType::ECDH)
|
||||
.can_encrypt(true)
|
||||
.passphrase(None)
|
||||
.build()
|
||||
|
||||
Reference in New Issue
Block a user