#block-cipher #stream-cipher #traits #encryption

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

#2102 in Cryptography

Download history 1228779/week @ 2025-01-10 1102109/week @ 2025-01-17 1176584/week @ 2025-01-24 1267476/week @ 2025-01-31 1329196/week @ 2025-02-07 1245832/week @ 2025-02-14 1396842/week @ 2025-02-21 1360573/week @ 2025-02-28 1427260/week @ 2025-03-07 1458542/week @ 2025-03-14 1455763/week @ 2025-03-21 1521130/week @ 2025-03-28 1708706/week @ 2025-04-04 1556071/week @ 2025-04-11 1439391/week @ 2025-04-18 1158666/week @ 2025-04-25

6,148,920 downloads per month
Used in 5,670 crates (181 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