mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
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
This commit is contained in:
committed by
Alexander Krotov
parent
c1d4996777
commit
818c20e0cb
@@ -153,8 +153,8 @@ pub(crate) fn create_keypair(
|
||||
keygen_type: KeyGenType,
|
||||
) -> std::result::Result<KeyPair, PgpKeygenError> {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user