Trait Decryptor

Source
pub trait Decryptor {
    type EncryptionFields<'a>;

    // Required method
    fn decrypt(&self, data: Self::EncryptionFields<'_>) -> Result<Vec<u8>>;
}

Required Associated Types§

Required Methods§

Source

fn decrypt(&self, data: Self::EncryptionFields<'_>) -> Result<Vec<u8>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Decryptor for cmail_rpgp::crypto::ecdh::SecretKey

Source§

impl Decryptor for PrivateKey

Source§

impl Decryptor for cmail_rpgp::crypto::x448::SecretKey

Source§

impl Decryptor for cmail_rpgp::crypto::x25519::SecretKey