Trait rustls::crypto::cipher::MessageDecrypter

source ·
pub trait MessageDecrypter: Send + Sync {
    // Required method
    fn decrypt<'a>(
        &mut self,
        msg: InboundOpaqueMessage<'a>,
        seq: u64,
    ) -> Result<InboundPlainMessage<'a>, Error>;
}
Expand description

Objects with this trait can decrypt TLS messages.

Required Methods§

source

fn decrypt<'a>( &mut self, msg: InboundOpaqueMessage<'a>, seq: u64, ) -> Result<InboundPlainMessage<'a>, Error>

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

Implementors§