Expand description
ChaCha20-Poly1305 Authenticated Encryption with Associated Data (AEAD)
Pure-Rust implementation combining:
- ChaCha20 stream cipher (encryption)
- Poly1305 MAC (authentication)
This is a custom implementation to avoid LLVM SIMD issues on x86_64-unknown-none.
Properties:
- 256-bit key, 96-bit nonce
- 128-bit authentication tag
- Constant-time operations
- ~4 cycles/byte on modern x86_64
Used by:
- WireGuard: Transport data encryption
- SSH: chacha20-poly1305@openssh.com cipher
Structs§
- ChaCha20
Poly1305 - ChaCha20-Poly1305 AEAD cipher
Enums§
- Crypto
Error - Cryptographic error types
Constants§
- CHACH
A20_ KEY_ SIZE - Key size for ChaCha20-Poly1305 (32 bytes)
- CHACH
A20_ NONCE_ SIZE - Nonce size for ChaCha20-Poly1305 (12 bytes)
- POLY1305_
TAG_ SIZE - Authentication tag size (16 bytes)