#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

#9 in #stream-cipher

Download history 661868/week @ 2026-03-03 4037959/week @ 2026-03-10 3483234/week @ 2026-03-17 3427007/week @ 2026-03-24 3466932/week @ 2026-03-31 3753676/week @ 2026-04-07 3817803/week @ 2026-04-14 3898686/week @ 2026-04-21 3893662/week @ 2026-04-28 4215458/week @ 2026-05-05 4985950/week @ 2026-05-12 4864088/week @ 2026-05-19 5042294/week @ 2026-05-26 4690751/week @ 2026-06-02

20,311,300 downloads per month
Used in 12,952 crates (303 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.8MB
~39K SLoC