Skip to main content

RecordDecrypter

Trait RecordDecrypter 

Source
pub trait RecordDecrypter: Send + Sync {
    // Required method
    fn decrypt<'a>(
        &mut self,
        record: Record<InboundOpaque<'a>>,
        seq: u64,
    ) -> Result<Record<&'a [u8]>, Error>;
}
Expand description

Objects with this trait can decrypt TLS records.

Required Methods§

Source

fn decrypt<'a>( &mut self, record: Record<InboundOpaque<'a>>, seq: u64, ) -> Result<Record<&'a [u8]>, Error>

Decrypt the given TLS record, using the sequence number seq which can be used to derive a unique Nonce.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§