struct ChaCha20Poly1305MessageDecrypter {
dec_key: LessSafeKey,
dec_offset: Iv,
}
Expand description
The RFC7905/RFC7539 ChaCha20Poly1305 construction.
This implementation does the AAD construction required in TLS1.2.
TLS1.3 uses TLS13MessageDecrypter
.
Fields§
§dec_key: LessSafeKey
§dec_offset: Iv
Trait Implementations§
Source§impl MessageDecrypter for ChaCha20Poly1305MessageDecrypter
impl MessageDecrypter for ChaCha20Poly1305MessageDecrypter
Source§fn decrypt<'a>(
&mut self,
msg: InboundOpaqueMessage<'a>,
seq: u64,
) -> Result<InboundPlainMessage<'a>, Error>
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
.Auto Trait Implementations§
impl Freeze for ChaCha20Poly1305MessageDecrypter
impl RefUnwindSafe for ChaCha20Poly1305MessageDecrypter
impl Send for ChaCha20Poly1305MessageDecrypter
impl Sync for ChaCha20Poly1305MessageDecrypter
impl Unpin for ChaCha20Poly1305MessageDecrypter
impl UnwindSafe for ChaCha20Poly1305MessageDecrypter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more