#stream-cipher #block-cipher #encryption #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

#1749 in Cryptography

Download history 1168462/week @ 2024-12-08 1040437/week @ 2024-12-15 462995/week @ 2024-12-22 599233/week @ 2024-12-29 1085387/week @ 2025-01-05 1226446/week @ 2025-01-12 1098412/week @ 2025-01-19 1182442/week @ 2025-01-26 1310150/week @ 2025-02-02 1318172/week @ 2025-02-09 1264980/week @ 2025-02-16 1372014/week @ 2025-02-23 1371017/week @ 2025-03-02 1437495/week @ 2025-03-09 1456743/week @ 2025-03-16 1389871/week @ 2025-03-23

5,724,203 downloads per month
Used in 5,385 crates (178 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