#block-cipher #stream-cipher

no-std cipher

Traits for describing block ciphers and stream ciphers

15 releases

Uses new Rust 2024

0.5.0-rc.0 May 30, 2025
0.5.0-pre.8 Feb 22, 2025
0.5.0-pre.7 Aug 14, 2024
0.5.0-pre.6 Jul 26, 2024
0.1.1 Jun 26, 2015

#2584 in Cryptography

Download history 1497014/week @ 2025-03-27 1686826/week @ 2025-04-03 1600159/week @ 2025-04-10 1419151/week @ 2025-04-17 1432229/week @ 2025-04-24 1358520/week @ 2025-05-01 1467797/week @ 2025-05-08 1478138/week @ 2025-05-15 1382549/week @ 2025-05-22 1440958/week @ 2025-05-29 1399125/week @ 2025-06-05 1581264/week @ 2025-06-12 1493801/week @ 2025-06-19 1565112/week @ 2025-06-26 1485343/week @ 2025-07-03 1269524/week @ 2025-07-10

6,111,859 downloads per month
Used in 6,108 crates (187 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 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–750KB
~18K SLoC