Add a RSA2k cipher suite.

- Fixes #327.
This commit is contained in:
Justus Winter 2024-09-02 14:21:35 +02:00
parent 5131a72569
commit 2eb38021ae
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -375,6 +375,7 @@ If `--output` is `-`, then this option must be provided.",
#[derive(ValueEnum, Clone, Debug, Default)]
pub enum CipherSuite {
Rsa2k,
Rsa3k,
Rsa4k,
#[default]
@ -386,6 +387,7 @@ impl CipherSuite {
/// Return a matching `sequoia_openpgp::cert::CipherSuite`
pub fn as_ciphersuite(&self) -> SqCipherSuite {
match self {
CipherSuite::Rsa2k => SqCipherSuite::RSA2k,
CipherSuite::Rsa3k => SqCipherSuite::RSA3k,
CipherSuite::Rsa4k => SqCipherSuite::RSA4k,
CipherSuite::Cv25519 => SqCipherSuite::Cv25519,