Skip to content

OpenQPEP Beta Version 0.2.1

Choose a tag to compare

@Calyxia Calyxia released this 20 Nov 02:55
fd63ad2

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 5 QLX/QVS suite definitions (QLX-768 through Calyx 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-Poly1305 cascade), hgc448.py (X448 / Ed448), consttime.py, and zeroize.py.
  • calyx_qpep/lattice/ — ntt_3329.py, ntt_8380417.py, poly_ring.py, tesseract_coupling.py (4-manifold QLX-16384 seed coupling), qlx_kem.py, and qvs_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.decaps with unconditional Fujisaki-Okamoto implicit-rejection multiplexing—both the candidate shared secret and the rejection key are always computed and selected via ct_cmov, eliminating secret-dependent timing branches on tampered ciphertexts.

3. Active Secret Memory Scrubbing (zeroize.py)

  • Added SecretBuffer and zeroize_bytes() backed by ctypes.memset to actively overwrite mutable bytearray buffers holding unpacked secret lattice vectors (s, s1, s2), X448/Ed448 private keys, and derived 64-byte CC-512 session keys immediately on scope exit (including on exceptions).

4. Typed Cryptographic Exception Hierarchy (exceptions.py)

  • Replaced generic ValueError / RuntimeError raises with auditable, domain-specific exceptions inheriting from OpenQPEPError(ValueError):
    • QPEPMacVerificationError
    • QPEPFaultGuardError (triggered by Verify-Before-Emit Fault-Guard inside QVSEngine.sign)
    • QPEPWireFormatError
    • QPEPTruncationError
    • QPEPPassphrasePolicyError
    • QPEPKeyRingError & 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 (Android vc8, iOS .mobileconfig, Web), messenger_server, directory_server, website_server, and calyxlabsinc.github.io to 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
openqpep

Official Links & Downloads