Trait rustls::crypto::cipher::MessageDecrypter
source · pub trait MessageDecrypter: Send + Sync {
// Required method
fn decrypt(
&mut self,
msg: OpaqueMessage,
seq: u64,
) -> Result<PlainMessage, Error>;
}
Expand description
Objects with this trait can decrypt TLS messages.
Required Methods§
sourcefn decrypt(
&mut self,
msg: OpaqueMessage,
seq: u64,
) -> Result<PlainMessage, Error>
fn decrypt( &mut self, msg: OpaqueMessage, seq: u64, ) -> Result<PlainMessage, Error>
Decrypt the given TLS message msg
, using the sequence number
seq
which can be used to derive a unique Nonce
.