The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits from the RustCrypto `cipher` crate, with optional architecture-specific hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional rand_core-compatible RNGs based on those ciphers.
# Cargo.toml
[dependencies]
chacha20 = "0.10.0"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Encrypts a 64-byte buffer using ChaCha20 with a zero key and nonce.
Add `cipher` to your dependencies and import `KeyIvInit` and `StreamCipher`
No dependency data recorded yet.