pub type ChaCha20Poly1305 = ChaChaPoly1305<ChaCha20, U12>;Expand description
ChaCha20Poly1305 Authenticated Encryption with Additional Data (AEAD).
Aliased Type§
pub struct ChaCha20Poly1305 {
pub(crate) key: GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>,
pub(crate) stream_cipher: PhantomData<StreamCipherCoreWrapper<ChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>>,
pub(crate) nonce_size: PhantomData<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>,
}Fields§
§key: GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>Secret key.
stream_cipher: PhantomData<StreamCipherCoreWrapper<ChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>>ChaCha stream cipher.
nonce_size: PhantomData<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>Nonce size.