pub type ChaCha20 = StreamCipherCoreWrapper<ChaChaCore<R20, Legacy>>;
Available on crate feature
chacha20poly1305
only.Expand description
The ChaCha20 stream cipher (legacy “djb” construction with 64-bit nonce).
WARNING: this implementation uses 32-bit counter, while the original implementation uses 64-bit counter. In other words, it does not allow encrypting of more than 256 GiB of data.
Aliased Type§
pub struct ChaCha20 { /* private fields */ }