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 with_session_key(
self: Box<Self>,
sk: SessionKey
) -> Result<Box<dyn Decrypt<'a> + 'a>>; fn with_password(
self: Box<Self>,
password: &str
) -> 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
fn verify_not_before(
self: Box<Self>,
t: SystemTime
) -> Box<dyn Decrypt<'a> + 'a>
[src]
fn verify_not_before(
self: Box<Self>,
t: SystemTime
) -> Box<dyn Decrypt<'a> + 'a>
[src]Makes SOP consider signatures before this date invalid.
fn verify_not_after(self: Box<Self>, t: SystemTime) -> Box<dyn Decrypt<'a> + 'a>
[src]
fn verify_not_after(self: Box<Self>, t: SystemTime) -> Box<dyn Decrypt<'a> + 'a>
[src]Makes SOP consider signatures after this date invalid.
fn verify_with_cert(
self: Box<Self>,
cert: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]
fn verify_with_cert(
self: Box<Self>,
cert: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]Adds the verification cert.
fn with_session_key(
self: Box<Self>,
sk: SessionKey
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]
fn with_session_key(
self: Box<Self>,
sk: SessionKey
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]Tries to decrypt with the given session key.
fn with_password(
self: Box<Self>,
password: &str
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]
fn with_password(
self: Box<Self>,
password: &str
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]Tries to decrypt with the given password.
fn with_key(
self: Box<Self>,
key: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]
fn with_key(
self: Box<Self>,
key: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Decrypt<'a> + 'a>>
[src]Adds the decryption key.
fn ciphertext(
self: Box<Self>,
ciphertext: &'a mut (dyn Read + Send + Sync)
) -> Result<Box<dyn ReadyWithResult<(Option<SessionKey>, Vec<Verification>)> + 'a>>
[src]
fn ciphertext(
self: Box<Self>,
ciphertext: &'a mut (dyn Read + Send + Sync)
) -> Result<Box<dyn ReadyWithResult<(Option<SessionKey>, Vec<Verification>)> + 'a>>
[src]Decrypts ciphertext
, returning verification results and
plaintext.