20 releases (10 breaking)

Uses new Rust 2021

0.10.2 Feb 17, 2022
0.9.0 Aug 29, 2021
0.8.1 Jul 20, 2021
0.7.2 Nov 12, 2020
0.0.0 Oct 6, 2016

#94 in Cryptography

Download history 45971/week @ 2022-06-07 47732/week @ 2022-06-14 44906/week @ 2022-06-21 41567/week @ 2022-06-28 43330/week @ 2022-07-05 46456/week @ 2022-07-12 50745/week @ 2022-07-19 48944/week @ 2022-07-26 46012/week @ 2022-08-02 50571/week @ 2022-08-09 46984/week @ 2022-08-16 47878/week @ 2022-08-23 52756/week @ 2022-08-30 49714/week @ 2022-09-06 51247/week @ 2022-09-13 42311/week @ 2022-09-20

205,207 downloads per month
Used in 220 crates (20 directly)

MIT/Apache

17KB
249 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.56 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

~330KB