#encryption #rust-crypto #aead #traits #facade #digest #compatible

no-std crypto

Facade crate for all of the RustCrypto traits (e.g. aead, cipher, digest)

5 releases (3 breaking)

0.5.1 Jun 28, 2023
0.5.0 Apr 18, 2023
0.4.0 Aug 10, 2022
0.3.0 Jun 8, 2021
0.0.2 Nov 21, 2014

#2625 in Cryptography

Download history 4765/week @ 2024-07-31 3877/week @ 2024-08-07 3526/week @ 2024-08-14 4169/week @ 2024-08-21 3730/week @ 2024-08-28 4291/week @ 2024-09-04 3341/week @ 2024-09-11 2618/week @ 2024-09-18 3543/week @ 2024-09-25 5702/week @ 2024-10-02 4039/week @ 2024-10-09 4625/week @ 2024-10-16 5230/week @ 2024-10-23 4909/week @ 2024-10-30 4498/week @ 2024-11-06 4375/week @ 2024-11-13

19,884 downloads per month
Used in 34 crates (16 directly)

Apache-2.0 OR MIT

165KB
3K SLoC

RustCrypto: crypto crate

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

Facade crate for RustCrypto Traits, providing a single place to access compatible versions of all traits from the Rust Crypto project.

Documentation

About

Facade crate for RustCrypto Traits, providing a single place to access compatible versions of all traits from the Rust Crypto project.

About

The RustCrypto Project publishes and maintains independently versioned crates containing traits for many different kinds of cryptographic algorithms.

However, these algorithms are often interdependent (e.g. many depend on digest algorithms), which requires figuring out which versions of the trait crates are compatible with each other.

This crate will automatically pull in compatible versions of these crates, with each one gated under a cargo feature, providing a single place to both import and upgrade these crates while ensuring they remain compatible.

Traits

The following traits are available as re-exports of RustCrypto crates through this crate's facade. To access a particular re-export you (or a crate you depend on) must enable the associated Cargo feature named below.

Re-export Cargo feature Description
aead aead Authenticated Encryption with Associated Data (i.e. high-level symmetric encryption)
cipher cipher Block and stream ciphers (i.e. low-level symmetric encryption)
digest digest Cryptographic hash functions
elliptic_curve elliptic-curve Elliptic curve cryptography
password_hash password-hash Password hashing functions
signature signature Digital signatures (i.e. public key-based message authentication)
universal_hash universal‑hash Universal Hash Functions (used to build MACs)

Minimum Supported Rust Version

Rust 1.65 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

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

~190–620KB
~13K SLoC