Skip to main content

quantaegis_core/
lib.rs

1//! Core abstractions and security primitives for the `quantaegis-*` Post-Quantum Cryptography workspace.
2//!
3//! # Security Guarantees & Design
4//! - `#![no_std]` with zero external dependencies and no `alloc` requirement.
5//! - `#![forbid(unsafe_code)]` across the entire crate.
6//! - Constant-time comparison and selection utilities ([`ct`]).
7//! - Automatic secret zeroization wrappers ([`zeroize`], [`secret`]) that redact secrets in `Debug`.
8//! - Misuse-resistant [`kem::Kem`] and [`rng::CryptoRng`] trait abstractions.
9//!
10//! > **Note**: Pre-`1.0.0` software — an independent third-party cryptographic audit has not yet
11//! > been completed; please take this into account when using this crate. The project-wide maturity
12//! > stage is tracked in one place:
13//! > [SECURITY.md](https://github.com/PyRin-c/quantaegis/blob/main/SECURITY.md#maturity--production-readiness-status).
14
15#![no_std]
16#![forbid(unsafe_code)]
17
18#[cfg(feature = "std")]
19extern crate std;
20
21pub mod ct;
22pub mod error;
23pub mod kem;
24pub mod rng;
25pub mod secret;
26pub mod signature;
27pub mod zeroize;
28
29pub use ct::Choice;
30pub use error::{Error, Result};
31pub use kem::Kem;
32pub use rng::CryptoRng;
33pub use secret::{SecretBytes, SharedSecret};
34pub use signature::Signature;
35pub use zeroize::Zeroize;