pub trait Encrypt<'a> {
    fn no_armor(self: Box<Self>) -> Box<dyn Encrypt<'a> + 'a>;
fn mode(self: Box<Self>, mode: EncryptAs) -> Box<dyn Encrypt<'a> + 'a>;
fn sign_with_key(
        self: Box<Self>,
        key: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Encrypt<'a> + 'a>>;
fn sign_with_keys(
        self: Box<Self>,
        keys: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Encrypt<'a> + 'a>>;
fn with_password(
        self: Box<Self>,
        password: Password
    ) -> Result<Box<dyn Encrypt<'a> + 'a>>;
fn with_cert(
        self: Box<Self>,
        cert: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Encrypt<'a> + 'a>>;
fn with_certs(
        self: Box<Self>,
        certs: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Encrypt<'a> + 'a>>;
fn plaintext(
        self: Box<Self>,
        plaintext: &'a mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Ready + 'a>>; }
Expand description

Builder for SOP::encrypt.

Required methods

Disables armor encoding.

Sets encryption mode.

Adds the signer key.

Adds the signer keys.

Like Encrypt::sign_with_key, but for multiple keys.

Encrypts with the given password.

Encrypts with the given cert.

Encrypts with the given certs.

Like Encrypt::with_cert, but for multiple certs.

Encrypts the given data yielding the ciphertext.

Implementors