Crates.io | crypto |
lib.rs | crypto |
version | 0.5.1 |
source | src |
created_at | 2014-11-21 10:30:37.345528 |
updated_at | 2023-06-28 01:51:29.195622 |
description | Facade crate for all of the RustCrypto traits (e.g. `aead`, `cipher`, `digest`) |
homepage | |
repository | https://github.com/RustCrypto/traits |
max_upload_size | |
id | 282 |
size | 21,882 |
crypto
crateFacade crate for RustCrypto Traits, providing a single place to access compatible versions of all traits from the Rust Crypto project.
Facade crate for RustCrypto Traits, providing a single place to access compatible versions of all traits from the Rust Crypto project.
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.
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) |
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.
Licensed under either of:
at your option.
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.