#block-cipher #stream-cipher #traits

no-std cipher

Traits for describing block ciphers and stream ciphers

24 releases

Uses new Rust 2024

new 0.5.0 Feb 4, 2026
0.5.0-rc.6 Jan 24, 2026
0.5.0-rc.3 Dec 27, 2025
0.5.0-rc.2 Nov 5, 2025
0.1.1 Jun 26, 2015

#1971 in Cryptography

Download history 2022705/week @ 2025-10-19 2181519/week @ 2025-10-26 2295719/week @ 2025-11-02 2202348/week @ 2025-11-09 2364594/week @ 2025-11-16 1971316/week @ 2025-11-23 2197978/week @ 2025-11-30 2389557/week @ 2025-12-07 2303564/week @ 2025-12-14 1233509/week @ 2025-12-21 1169185/week @ 2025-12-28 2226153/week @ 2026-01-04 2513796/week @ 2026-01-11 2577654/week @ 2026-01-18 2640793/week @ 2026-01-25 2885894/week @ 2026-02-01

10,794,132 downloads per month
Used in 8,642 crates (229 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

~0.5–2MB
~43K SLoC