Repository navigation
OpenQPEP Beta Version 0.2.1
OpenQPEP by Calyx Labs Inc. — Beta Version 0.2.1
Modular Cryptographic Kernel, Constant-Time Hardening & Unified Suite Release
Beta Version 0.2.1 marks the first major architectural milestone on the v0.2.1 → v0.3.0 OpenQPEP Protocol roadmap. This release refactors the core cryptographic engine from a 5-file layout into a clean, auditable 20-module cryptographic library, introduces branchless constant-time primitives and active RAM zeroization, adds a typed cryptographic exception hierarchy, adopts the universal FOSS CPOSLS-1.0 license, and synchronizes the entire OpenQPEP Suite to Beta Version 0.2.1.
What's New in Beta Version 0.2.1
1. Modular Cryptographic Kernel (calyx_qpep/)
Refactored protocol.py and qlx_lattice.py into single-responsibility modules for easier third-party code review, formal auditing, and cross-language porting—while keeping from calyx_qpep import OpenQPEPProtocol 100% backward compatible:
calyx_qpep/constants.py— Centralized protocol constants, wire magic bytes, and all 5QLX/QVSsuite definitions (QLX-768throughCalyx Hyper-Tesseract QLX-16384).calyx_qpep/exceptions.py— Typed cryptographic and wire-format exception hierarchy.calyx_qpep/primitives/—qsponge.py(qSponge-512&qSponge-XOF),cc512_aead.py(AES-256-GCM+ChaCha20-Poly1305cascade),hgc448.py(X448/Ed448),consttime.py, andzeroize.py.calyx_qpep/lattice/—ntt_3329.py,ntt_8380417.py,poly_ring.py,tesseract_coupling.py(4-manifoldQLX-16384seed coupling),qlx_kem.py, andqvs_dsa.py.
2. Branchless Constant-Time Hardening (consttime.py)
- Implemented branchless byte-array conditional move (
ct_cmov), constant-time equality (ct_eq), and Barrett/Montgomery modular reduction helpers. - Hardened
QLXEngine.decapswith unconditional Fujisaki-Okamoto implicit-rejection multiplexing—both the candidate shared secret and the rejection key are always computed and selected viact_cmov, eliminating secret-dependent timing branches on tampered ciphertexts.
3. Active Secret Memory Scrubbing (zeroize.py)
- Added
SecretBufferandzeroize_bytes()backed byctypes.memsetto actively overwrite mutablebytearraybuffers holding unpacked secret lattice vectors (s,s1,s2),X448/Ed448private keys, and derived 64-byteCC-512session keys immediately on scope exit (including on exceptions).
4. Typed Cryptographic Exception Hierarchy (exceptions.py)
- Replaced generic
ValueError/RuntimeErrorraises with auditable, domain-specific exceptions inheriting fromOpenQPEPError(ValueError):QPEPMacVerificationErrorQPEPFaultGuardError(triggered by Verify-Before-EmitFault-GuardinsideQVSEngine.sign)QPEPWireFormatErrorQPEPTruncationErrorQPEPPassphrasePolicyErrorQPEPKeyRingError&QPEPSuiteError
5. Universal FOSS License (CPOSLS-1.0) & Unified Suite Sync
- Updated licensing to the Calyx Public Open Source Specifications v1.0 License (
CPOSLS-1.0)—a universal 100% FOSS license requiring only Original Author Attribution. - Synchronized Calyx QPEP Client (Android
vc208& iOS.mobileconfig), Calyx Encrypted Messenger (Androidvc8, iOS.mobileconfig, Web),messenger_server,directory_server,website_server, andcalyxlabsinc.github.ioto Beta Version 0.2.1. - Expanded automated test coverage to 16/16 OpenQPEP Core unit tests (
test_calyx_qpep.py+test_v021_modular_kernel.py) and 5/5 Messenger Server tests.
Install & Verify
git clone [https://github.com/CalyxLabsInc/OpenQPEP.git](https://github.com/CalyxLabsInc/OpenQPEP.git)
cd OpenQPEP
pip install -e .
python3 -m unittest discover -s tests -v
openqpepOfficial Links & Downloads
- OpenQPEP Core Repository: https://github.com/CalyxLabsInc/OpenQPEP/
- Calyx QPEP Client (Android & iOS): https://github.com/CalyxLabsInc/CalyxQPEP-Client/ | Direct APK | iOS Profile
- Calyx Encrypted Messenger: Web App | Direct APK | iOS Profile
- Public Key Directory: https://qpepkeys.calyxlabsinc.org
- Official Website & Mirror: https://calyxlabsinc.org/ | https://calyxlabsinc.github.io/