Skip to content

FIPS 203 Compliance

Documentation for stable release 1.5.0.

AegisQ implements ML-KEM for key encapsulation and AES-256-GCM for authenticated encryption. Published versions are listed on PyPI; checkout versions live in the package manifests. Release history is maintained in the repository’s CHANGELOG.md.

StandardDescription
FIPS 203ML-KEM — Module-Lattice-Based Key-Encapsulation Mechanism (NIST, 2024)
NIST SP 800-38DAES-GCM — Galois/Counter Mode specification
RFC 5869HMAC-based Extract-and-Expand Key Derivation Function (HKDF)
RFC 4648Base16, Base32, Base64 data encodings (used for PEM bodies and Base64 URL-safe keys)
RFC 7468Textual Encodings of PKIX, PKCS, and CMS Structures (PEM format adapted for ML-KEM)
PEP 561Distributing and Packaging Type Information (AegisQ ships py.typed + .pyi stubs)

Versions are current manifest requirements, not exact lockfile resolutions or an inventory of a published release. Workspace declarations live in Cargo.toml; PyO3 and Criterion are declared in the bridge/core manifests. Cargo.lock records resolved versions.

CrateVersionPurposeno_std
aes-gcm0.11AES-256-GCM authenticated encryption (hardware AES-NI)✅
sha30.12SHA3-256/512 for ML-KEM✅
shake0.1XOF variants moved out of sha3 upstream (RustCrypto/XOFs split)✅
zeroize1.9Cleanup of selected secret buffers✅
subtle2.6Constant-time comparisons✅
getrandom0.4OS-level randomness for nonces and keygen✅
base640.23PEM body encoding✅
thiserror2.0Error type definitions✅
pyo30.29Rust-Python FFI bindings (abi3-py311)—
criterion (dev)0.5Benchmarks for NTT and KEM operations—

All cryptographic crates are no_std compatible. pyo3 and criterion are excluded — they are used only at the FFI and dev-dependency layers respectively.

AegisQ verifies its ML-KEM implementation against the official NIST ACVP (Automated Cryptographic Validation Program) test vectors:

  • KeyGen — tests/python/json-files/ML-KEM-keyGen-FIPS203/
  • Encap/Decap — tests/python/json-files/ML-KEM-encapDecap-FIPS203/

tests/python/test_kat_vectors.py explicitly compares expected KeyGen and encapsulation outputs byte-for-byte. It does not invoke decapsulation or assert the expected decapsulation/rejection outputs from the combined corpus. Roundtrips are checked separately in tests/python/test_kem_api.py; tests/python/test_implicit_rejection.py covers invalid capsule contents. Those tests do not replace decapsulation known-answer tests.

Passing these tests is correctness evidence for the checked inputs, not a proof of security, exhaustive vector coverage, or official certification. A pass claim must refer to an actual run against the matching source and native extension.