#block-cipher #stream-cipher #traits

no-std cipher

Traits for describing block ciphers and stream ciphers

25 releases

Uses new Rust 2024

0.5.1 Feb 25, 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

#1894 in Cryptography

Download history 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 2886095/week @ 2026-02-01 2978988/week @ 2026-02-08 2965161/week @ 2026-02-15 3154286/week @ 2026-02-22 3644046/week @ 2026-03-01 4005634/week @ 2026-03-08 3636270/week @ 2026-03-15 3405323/week @ 2026-03-22 3503799/week @ 2026-03-29 3634237/week @ 2026-04-05 3844751/week @ 2026-04-12

14,645,267 downloads per month
Used in 10,861 crates (276 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.4–1.9MB
~40K SLoC