8 releases (breaking)
Uses new Rust 2024
| 0.6.0-rc.2 | Nov 5, 2025 |
|---|---|
| 0.5.1 | Feb 17, 2022 |
| 0.4.0 | Apr 29, 2021 |
| 0.3.0 | Oct 16, 2020 |
| 0.0.0 |
|
#2990 in Cryptography
82 downloads per month
52KB
640 lines
RustCrypto: Serpent Cipher
Experimental pure Rust implementation of the Serpent block cipher.
⚠️ 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!
Configuration flags
You can modify crate using the following configuration flags:
serpent_no_unroll: do not unroll rounds loop. Reduces binary size at the cost of slightly lower performance.
The flag can be enabled using RUSTFLAGS environmental variable (e.g. RUSTFLAGS="--cfg serpent_no_unroll") or by modifying .cargo/config.
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
~690KB
~18K SLoC