std.crypto.chacha
The ChaCha family of stream ciphers.
This module provides the ChaCha20 and XChaCha20 stream ciphers, and the HChaCha20 hash function. The implementations are based on the following RFCs:
- https://datatracker.ietf.org/doc/html/rfc8439
- https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha
Methods
hchacha20 | Derives a sub-key from a secret key and nonce, using the HChaCha20 algorithm. |
Classes
ChaCha20 | The ChaCha20 stream cipher. | |
XChaCha20 | The XChaCha20 stream cipher. |