3 unstable releases
0.1.1 | May 16, 2023 |
---|---|
0.1.0 | May 16, 2023 |
0.0.0 | Nov 29, 2022 |
#2378 in Cryptography
171,932 downloads per month
Used in 97 crates
(19 directly)
19KB
193 lines
RustCrypto: crypto_secretbox
crypto_secretbox
is an authenticated symmetric encryption cipher
amenable to fast, constant-time implementations in software, combining either the
Salsa20 stream cipher (with XSalsa20 192-bit nonce extension) or
ChaCha20 stream cipher with the Poly1305 universal hash function,
which acts as a message authentication code.
This algorithm has largely been replaced by the newer IETF variant of ChaCha20Poly1305 (and the associated XChaCha20Poly1305) AEAD ciphers (RFC 8439), but is useful for interoperability with legacy NaCl-based protocols.
Security Warning
No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.
USE AT YOUR OWN RISK!
License
Licensed under either of:
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~0.6–1MB
~17K SLoC