22 releases (11 breaking)

0.11.0-pre.2 Oct 7, 2024
0.11.0-pre.1 Jul 27, 2024
0.10.2 Feb 17, 2022
0.9.0 Aug 29, 2021
0.0.0 Oct 6, 2016

#1918 in Cryptography

Download history 170321/week @ 2024-08-17 159711/week @ 2024-08-24 169511/week @ 2024-08-31 167022/week @ 2024-09-07 158223/week @ 2024-09-14 170370/week @ 2024-09-21 172802/week @ 2024-09-28 190354/week @ 2024-10-05 187946/week @ 2024-10-12 197502/week @ 2024-10-19 176986/week @ 2024-10-26 179862/week @ 2024-11-02 202633/week @ 2024-11-09 219070/week @ 2024-11-16 204823/week @ 2024-11-23 219722/week @ 2024-11-30

878,514 downloads per month
Used in 991 crates (32 directly)

MIT/Apache

25KB
419 lines

RustCrypto: Salsa20 Stream Cipher

Crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status HAZMAT

Pure Rust implementation of the Salsa20 Stream Cipher.

Documentation

About

Salsa20 is a stream cipher which is designed to support high-performance software implementations.

This crate also contains an implementation of XSalsa20: a variant of Salsa20 with an extended 192-bit (24-byte) nonce, gated under the xsalsa20 Cargo feature (on-by-default).

⚠️ Security Warning: Hazmat!

This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to verify ciphertext integrity), which can lead to serious vulnerabilities if used incorrectly!

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!

Minimum Supported Rust Version

Rust 1.65 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

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

~330–500KB
~11K SLoC