serpent

Crates.ioserpent
lib.rsserpent
version0.6.0-rc.2
created_at2016-12-15 15:20:59.894931+00
updated_at2025-11-05 17:07:56.192403+00
descriptionSerpent block cipher
homepage
repositoryhttps://github.com/RustCrypto/block-ciphers
max_upload_size
id7590
size116,655
block-ciphers (github:rustcrypto:block-ciphers)

documentation

https://docs.rs/serpent

README

RustCrypto: Serpent Cipher

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

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.

Commit count: 556

cargo fmt