latticearc 0.7.1

Production-ready post-quantum cryptography. Hybrid ML-KEM+X25519 by default, all 4 NIST standards (FIPS 203–206), post-quantum TLS, and FIPS 140-3 backend — one crate, zero unsafe.
Documentation
#![deny(unsafe_code)]
#![deny(missing_docs)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::panic)]

//! Key Derivation Functions
//!
//! Provides KDFs for deriving keys from secrets following NIST standards.
//!
//! ## Supported Algorithms
//!
//! - **HKDF-SHA256**: HMAC-based Extract-and-Expand Key Derivation (NIST SP 800-56C)
//! - **PBKDF2**: Password-Based Key Derivation Function 2 (NIST SP 800-132)
//! - **SP 800-108 Counter KDF**: Counter-based Key Derivation (NIST SP 800-108)

pub mod hkdf;
pub mod pbkdf2;
pub mod sp800_108_counter_kdf;

pub use hkdf::*;
pub use pbkdf2::*;
pub use sp800_108_counter_kdf::*;

/// Fill a byte slice with cryptographically secure random bytes.
pub(super) fn get_random_bytes(bytes: &mut [u8]) {
    use rand::RngCore;
    rand::rngs::OsRng.fill_bytes(bytes);
}