struct ChaCha20Poly1305MessageEncrypter {
    enc_key: LessSafeKey,
    enc_offset: Iv,
}Expand description
The RFC7905/RFC7539 ChaCha20Poly1305 construction.
This implementation does the AAD construction required in TLS1.2.
TLS1.3 uses TLS13MessageEncrypter.
Fields§
§enc_key: LessSafeKey§enc_offset: IvTrait Implementations§
source§impl MessageEncrypter for ChaCha20Poly1305MessageEncrypter
 
impl MessageEncrypter for ChaCha20Poly1305MessageEncrypter
fn encrypt( &self, msg: BorrowedPlainMessage<'_>, seq: u64, ) -> Result<OpaqueMessage, Error>
Auto Trait Implementations§
impl Freeze for ChaCha20Poly1305MessageEncrypter
impl RefUnwindSafe for ChaCha20Poly1305MessageEncrypter
impl Send for ChaCha20Poly1305MessageEncrypter
impl Sync for ChaCha20Poly1305MessageEncrypter
impl Unpin for ChaCha20Poly1305MessageEncrypter
impl UnwindSafe for ChaCha20Poly1305MessageEncrypter
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.