Module kdf

Source
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§

HKdfOperation
HKDF builder implementation
Pbkdf2Builder
PBKDF2 builder implementation
TypedHkdf
Enhanced HKDF implementation with type-level guarantees
TypedPbkdf2
Enhanced PBKDF2 implementation with type-level guarantees

Enums§

HkdfAlgorithm
Type-level constants for HKDF algorithm
Pbkdf2Algorithm
Type-level constants for PBKDF2 algorithm

Traits§

KdfAlgorithm
Marker trait for KDF algorithms
KdfOperation
Operation for KDF operations with improved type safety
KeyDerivationFunction
Common trait for all key derivation functions
PasswordHashFunction
Trait for password hashing functions with type-level guarantees