[][src]Crate cryptography

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

  • aead - Authenticated Encryption with Associated Data (i.e. high-level symmetric encryption)
  • block_cipher - block-based cryptographic permutations (i.e. low-level symmetric encryption)
  • mac - message authentication codes (i.e. symmetric message authentication)
  • digest - cryptographic hash functions
  • signature - digital signatures (i.e. public key-based message authentication)
  • stream_cipher - ciphers based on randomly generated keystreams (i.e. low-level symmetric encryption)
  • universal_hash - universal hash functions (used to build MACs)

Re-exports

pub use aead;
pub use block_cipher;
pub use crypto_mac as mac;
pub use digest;
pub use signature;
pub use stream_cipher;
pub use universal_hash;