purecrypto 0.1.1

A pure-Rust cryptography toolkit with no foreign-code dependencies, from constant-time primitives up to keys, X.509 and TLS.
Documentation
//! Key-derivation functions.
//!
//!  - [`pbkdf2`] — RFC 8018, generic over any HMAC PRF.
//!  - [`hkdf`]   — RFC 5869, extract / expand / one-shot.
//!  - [`scrypt`] — RFC 7914, memory-hard PBKDF (requires `alloc`).
//!  - [`bcrypt_pbkdf`] — OpenSSH's PBKDF over Blowfish, used to protect
//!    new-format SSH private keys (requires `alloc`).

#[cfg(feature = "alloc")]
pub mod argon2;
#[cfg(feature = "alloc")]
pub mod bcrypt_pbkdf;
mod hkdf;
mod pbkdf2;
#[cfg(feature = "alloc")]
pub mod scrypt;

pub use hkdf::{hkdf, hkdf_expand, hkdf_extract};
pub use pbkdf2::pbkdf2;