pub trait MessageDecrypter: Send + Sync {
fn decrypt(&self, m: OpaqueMessage, seq: u64) -> Result<PlainMessage, Error>;
}
Expand description
Objects with this trait can decrypt TLS messages.
Required Methods
sourcefn decrypt(&self, m: OpaqueMessage, seq: u64) -> Result<PlainMessage, Error>
fn decrypt(&self, m: OpaqueMessage, seq: u64) -> Result<PlainMessage, Error>
Perform the decryption over the concerned TLS message.