Enum vanity_gpg::pgp_backends::CipherSuite
source · [−]pub enum CipherSuite {
RSA2048,
RSA3072,
RSA4096,
Curve25519,
NistP256,
NistP384,
NistP521,
}
Expand description
Cipher suites for OpenPGP keys
Variants
RSA2048
RSA3072
RSA4096
Curve25519
NistP256
NistP384
NistP521
Implementations
sourceimpl CipherSuite
impl CipherSuite
sourcepub fn get_signing_key_algorithm(&self) -> Algorithms
pub fn get_signing_key_algorithm(&self) -> Algorithms
Get singing key algorithm with the current cipher suite
sourcepub fn get_encryption_key_algorithm(&self) -> Algorithms
pub fn get_encryption_key_algorithm(&self) -> Algorithms
Get the encryption algorithm with the current cipher suite
Trait Implementations
sourceimpl Clone for CipherSuite
impl Clone for CipherSuite
sourcefn clone(&self) -> CipherSuite
fn clone(&self) -> CipherSuite
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CipherSuite
impl Debug for CipherSuite
sourceimpl Default for CipherSuite
impl Default for CipherSuite
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more