Expand description
Key Derivation Functions with operation pattern and type-level guarantees
This module provides implementations of key derivation functions (KDFs) with improved type safety and ergonomic APIs.
Re-exports§
pub use common::SecurityLevel;
pub use params::ParamProvider;
pub use params::PasswordHash;
pub use hkdf::Hkdf;
pub use pbkdf2::Pbkdf2;
pub use pbkdf2::Pbkdf2Params;
pub use argon2::Algorithm as Argon2Type;
pub use argon2::Argon2;
pub use argon2::Params as Argon2Params;
Modules§
- argon2
- Argon2 password hashing function with proper error handling
- common
- Common utilities for key derivation functions
- hkdf
- HMAC-based Key Derivation Function (HKDF)
- params
- Common parameter structures and traits for key derivation functions
- pbkdf2
- Password-Based Key Derivation Function 2 (PBKDF2)
Structs§
- HKdf
Operation - HKDF builder implementation
- Pbkdf2
Builder - PBKDF2 builder implementation
- Typed
Hkdf - Enhanced HKDF implementation with type-level guarantees
- Typed
Pbkdf2 - Enhanced PBKDF2 implementation with type-level guarantees
Enums§
- Hkdf
Algorithm - Type-level constants for HKDF algorithm
- Pbkdf2
Algorithm - Type-level constants for PBKDF2 algorithm
Traits§
- KdfAlgorithm
- Marker trait for KDF algorithms
- KdfOperation
- Operation for KDF operations with improved type safety
- KeyDerivation
Function - Common trait for all key derivation functions
- Password
Hash Function - Trait for password hashing functions with type-level guarantees