Enum sequoia_openpgp::cert::prelude::CipherSuite [−][src]
pub enum CipherSuite { Cv25519, RSA3k, P256, P384, P521, RSA2k, RSA4k, }
Expand description
Groups symmetric and asymmetric algorithms.
This is used to select a suite of ciphers.
Examples
use sequoia_openpgp as openpgp; use openpgp::cert::prelude::*; use openpgp::types::PublicKeyAlgorithm; let (ecc, _) = CertBuilder::general_purpose(None, Some("alice@example.org")) .set_cipher_suite(CipherSuite::Cv25519) .generate()?; assert_eq!(ecc.primary_key().pk_algo(), PublicKeyAlgorithm::EdDSA); let (rsa, _) = CertBuilder::general_purpose(None, Some("alice@example.org")) .set_cipher_suite(CipherSuite::RSA4k) .generate()?; assert_eq!(rsa.primary_key().pk_algo(), PublicKeyAlgorithm::RSAEncryptSign);
Variants
EdDSA and ECDH over Curve25519 with SHA512 and AES256
3072 bit RSA with SHA512 and AES256
EdDSA and ECDH over NIST P-256 with SHA256 and AES256
EdDSA and ECDH over NIST P-384 with SHA384 and AES256
EdDSA and ECDH over NIST P-521 with SHA512 and AES256
2048 bit RSA with SHA512 and AES256
4096 bit RSA with SHA512 and AES256
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for CipherSuite
impl Send for CipherSuite
impl Sync for CipherSuite
impl Unpin for CipherSuite
impl UnwindSafe for CipherSuite
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self