Repository Public Apache-2.0
1// =============================================================================2// SP BOUCHER | SOFTWARE & RESEARCH3// ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project : SPB Quantum Crypto7// File : crates/spb-pqc-core/src/lib.rs8// Module : Crates9// Repository : https://git.spboucher.ai/spb-quantum-crypto10// Project Website : https://pqce.spboucher.ai11// Created : 2026-12-0312// Last Modified : 2026-12-0313//14// Author : Simon-Pierre Boucher15// Position : Professor of Finance16// Institution : Université du Québec en Outaouais (UQO)17// Organization : SP Boucher18// Website : https://spboucher.ai19// Git : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development : dev@spboucher.ai23// Support : support@spboucher.ai24// Security/Admin : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License : Apache-2.033//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================4041//! # SPB Quantum Crypto — core42//!43//! **Status: EXPERIMENTAL / NOT AUDITED.** Conformance to the published NIST44//! test vectors is *not* a FIPS 140-3 validation and no certification is claimed.45//!46//! From-scratch implementations, written from the official specifications:47//!48//! * [`hash`] — SHA-3 / SHAKE (FIPS 202), SHA-2, HMAC, MGF1 (FIPS 180-4, 198-1, RFC 8017)49//! * [`kem`] — ML-KEM-512/768/1024 (FIPS 203)50//! * [`signature`] — ML-DSA-44/65/87 (FIPS 204) and the twelve SLH-DSA parameter sets (FIPS 205)51//!52//! The crate has no runtime dependency. `unsafe` is denied crate-wide and53//! allowed only in [`ct::wipe`] (volatile zeroisation) and the private54//! operating-system RNG binding of [`random`].5556pub mod ct;57pub mod encoding;58pub mod error;59pub mod hash;60pub mod info;61pub mod random;6263pub use error::{Error, Result};64pub use info::{65 capabilities_json, security_status, self_test, version, ABI_VERSION, SECURITY_STATUS, VERSION,66};67pub mod kem;68pub mod math;69pub mod signature;7071#[cfg(feature = "kat")]72pub mod kat;73