#stream-cipher #block-cipher #traits

no-std cipher

Traits for describing block ciphers and stream ciphers

14 releases

Uses new Rust 2024

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.5.0-pre.4 Mar 4, 2024
0.1.1 Jun 26, 2015

#1902 in Cryptography

Download history 925968/week @ 2024-11-27 1096576/week @ 2024-12-04 1124582/week @ 2024-12-11 829854/week @ 2024-12-18 461531/week @ 2024-12-25 798875/week @ 2025-01-01 1167704/week @ 2025-01-08 1153943/week @ 2025-01-15 1154826/week @ 2025-01-22 1204109/week @ 2025-01-29 1341466/week @ 2025-02-05 1264397/week @ 2025-02-12 1348657/week @ 2025-02-19 1352442/week @ 2025-02-26 1404191/week @ 2025-03-05 1188168/week @ 2025-03-12

5,538,046 downloads per month
Used in 5,387 crates (175 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
~19K SLoC