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(&self, msg: OpaqueMessage, seq: u64) -> Result<PlainMessage, Error>
fn decrypt(&self, msg: OpaqueMessage, seq: u64) -> Result<PlainMessage, Error>
Perform the decryption over the concerned TLS message.
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
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.