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: Iv
Trait Implementations§
source§impl MessageEncrypter for ChaCha20Poly1305MessageEncrypter
impl MessageEncrypter for ChaCha20Poly1305MessageEncrypter
fn encrypt(
&self,
msg: BorrowedPlainMessage<'_>,
seq: u64
) -> Result<OpaqueMessage, Error>
Auto Trait Implementations§
impl RefUnwindSafe for ChaCha20Poly1305MessageEncrypter
impl Send for ChaCha20Poly1305MessageEncrypter
impl Sync for ChaCha20Poly1305MessageEncrypter
impl Unpin for ChaCha20Poly1305MessageEncrypter
impl UnwindSafe for ChaCha20Poly1305MessageEncrypter
Blanket Implementations§
§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.