Trait sop::Decrypt[][src]

pub trait Decrypt<'a> {
    fn verify_not_before(
        self: Box<Self>,
        t: SystemTime
    ) -> Box<dyn Decrypt<'a> + 'a>;
fn verify_not_after(
        self: Box<Self>,
        t: SystemTime
    ) -> Box<dyn Decrypt<'a> + 'a>;
fn verify_with_cert(
        self: Box<Self>,
        cert: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Decrypt<'a> + 'a>>;
fn verify_with_certs(
        self: Box<Self>,
        certs: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Decrypt<'a> + 'a>>;
fn with_session_key(
        self: Box<Self>,
        sk: SessionKey
    ) -> Result<Box<dyn Decrypt<'a> + 'a>>;
fn with_password(
        self: Box<Self>,
        password: Password
    ) -> Result<Box<dyn Decrypt<'a> + 'a>>;
fn with_key(
        self: Box<Self>,
        key: &mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Decrypt<'a> + 'a>>;
fn ciphertext(
        self: Box<Self>,
        ciphertext: &'a mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn ReadyWithResult<(Option<SessionKey>, Vec<Verification>)> + 'a>>; }
Expand description

Builder for SOP::decrypt.

Required methods

Makes SOP consider signatures before this date invalid.

Makes SOP consider signatures after this date invalid.

Adds the verification cert.

Adds the verification certs.

Like Decrypt::verify_with_cert, but for multiple certs.

Tries to decrypt with the given session key.

Tries to decrypt with the given password.

Adds the decryption key.

Decrypts ciphertext, returning verification results and plaintext.

Implementors