rustls::crypto::cipher

Trait 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§