#block-cipher #stream-cipher #traits

no-std cipher

Traits for describing block ciphers and stream ciphers

25 releases

Uses new Rust 2024

0.5.2 May 19, 2026
0.5.1 Feb 25, 2026
0.5.0-rc.6 Jan 24, 2026
0.5.0-rc.3 Dec 27, 2025
0.1.1 Jun 26, 2015

#2845 in Cryptography

30,691,382 downloads per month
Used in 16,739 crates (364 directly)

MIT/Apache

120KB
2.5K SLoC

RustCrypto: Cipher Traits

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

Traits which define the functionality of block ciphers, block modes and stream ciphers.

See RustCrypto/block-ciphers and RustCrypto/stream-ciphers for algorithm implementations which use these traits.

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

~420–630KB
~16K SLoC