Overview

The quantum and cryptography pillars, unified.

The φCrypt standard was designed with quantum resistance as a first principle — no algebraic hardness assumptions, no elliptic curves, no factoring. This package tests that claim rigorously. By decomposing φHash into quantum circuits and running them through the same simulator used for error-correction research, we compute exact fault-tolerant Grover attack costs and confirm that φHash has no exploitable period structure under QFT analysis. Then we go further: quantum-native key generation from Bell-pair entropy and BB84 quantum key distribution, both integrated with φCrypt primitives end-to-end.

Six modules. Six independently tested capabilities. One result: φCrypt is quantum-safe at Tier 1 and above, with simulation-computed attack costs requiring millions of physical qubits and timescales exceeding 1085 years.

/ Results

Validation Results

Simulation-computed security parameters across all φCrypt security tiers. All figures are derived analytically from the quantum circuit T-gate profile under surface-code fault-tolerant models (d=17, IBM Heron R2 class hardware).

/ Tier 0

116-bit post-Grover · NIST Category 3

The lowest security tier. 116-bit post-Grover resistance places this at NIST Category 3 (AES-192 equivalent). Below NIST Category 5 — use Tier 1 or higher for quantum-threat applications.

116-bit post-Grover NIST Category 3
/ Tier 1

188-bit post-Grover · NIST Category 5

The standard production tier. 188-bit post-Grover resistance exceeds NIST Category 5 (AES-256 equivalent). Recommended minimum for all externally-visible operations in a quantum-threat environment.

188-bit post-Grover NIST Category 5
/ Tier 2

304-bit post-Grover · NIST Category 5

The highest standard tier. 304-bit post-Grover resistance far exceeds NIST Category 5. Fault-tolerant Grover attack cost: ~1.05 million physical qubits, ~1085 years on IBM Heron R2. Used for keypairs, signatures, and long-lived identities.

304-bit post-Grover NIST Category 5 ~1085 years
/ Modules

Six Modules

Each module addresses a distinct interface between the quantum simulation stack and the cryptographic standard. Modules 1–3 validate; modules 4–6 extend.

/ 01 — φHash Oracle

Quantum Circuit Decomposition

Decomposes φHash's five stages into quantum circuits (Zeckendorf encoder, FibSBox permutation, Triveni lifting wavelet, phyllotaxis permutation, Lucas chain). Computes T-gate profile and fault-tolerant Grover attack cost analytically.

Validation Book 4 — Introspection
/ 02 — Shor Analysis

QFT Period Sweep

Applies Quantum Fourier Transform analysis to φHash outputs. Confirmed: no dominant spectral peak (max power 0.211, below 0.25 random baseline). No algebraic period structure — φHash is Shor-resistant by measurement.

Validation Book 3 — Generative Kernel
/ 03 — Security Audit

Compile-Time Security Table

A compile-time table mapping each security tier to its post-Grover bit count, NIST PQC category, and fault-tolerant qubit budget. Key finding: Tier 0 is below NIST Category 5; use Tier 1+ for quantum-threat scenarios.

Validation Book 6 — Scaling
/ 04 — Quantum RNG

Bell-Pair Entropy Pipeline

A 4-stage entropy pipeline: Bell pair preparation → entanglement fidelity verification → Born-rule measurement → φHash whitening. Produces quantum-certified random bytes with chi-squared uniformity confirmed (χ² = 233, threshold 400).

Extension Book 9 — Soma Pipeline
/ 05 — φSign Quantum Keygen

Quantum-Certified Key Generation

Replaces φSign keygen's classical PRNG with Bell-pair entropy. Sign and verify APIs are unchanged — only the entropy source is upgraded. Every keypair is quantum-certified at its randomness source.

Extension Book 2 — Core Runtime
/ 06 — BB84 QKD

Quantum Key Distribution → φCipher

Full BB84 protocol: Alice prepares qubits in random bases, Bob measures, basis sifting retains matching bits, QBER estimation detects eavesdroppers (≥ 4/5 trials with 25% QBER intercept-resend), φHash privacy amplification produces a φCipher key.

Extension Book 7 — Governance
Demo Program

Five-act quantum cryptography demonstration.

Demo 7 in the φQuantum reference simulator runs the complete chain — from Shor's algorithm demonstrating the RSA threat, through φHash resistance analysis, quantum key generation, BB84 key distribution, and a full encrypted message exchange — in a single executable producing verifiable output.

  • / Act 1

    Quantum Threat Assessment

    Shor's algorithm on N=15, a=7. Measures period r=4, recovers factors 3 × 5. Establishes the baseline threat that φCrypt's design answers: classical number-theoretic cryptography collapses under quantum computation.

    Output: period r=4 → factors 3 × 5 ✓
  • / Act 2

    φHash Quantum Resistance Analysis

    QFT period sweep on 64 φHash outputs. T-gate oracle profile construction. Grover fault-tolerant cost estimation. Quantum walk Pearson correlation analysis. Confirmed: no exploitable period structure; attack cost ~1085 years.

    Peak QFT power: 0.211 (≤ 0.25 baseline) · Correlation: 0.042 · Cost: ~1085 years
  • / Act 3

    Quantum Key Generation (QRNG → φSign)

    Generates 4-stage Bell-pair entropy (fidelity 1.0000), feeds it into φSign keygen, signs and verifies a message. Every keypair is quantum-certified at its randomness source; the sign/verify protocol is identical to classical φSign.

    Bell fidelity: 1.0000 · Sign + verify roundtrip: ✓
  • / Act 4

    Quantum Key Distribution (BB84 → φCipher)

    512 raw qubits, basis sifting retains ~261 bits, QBER 0.0% on a clean channel. Privacy amplification via φHash (Tier 1) produces a 47-byte derived key. Eve simulation: intercept-resend detected in ≥ 4 of 5 trials.

    QBER: 0.0% · Sifted: 261 bits · Key: 47 bytes (Tier 1) · Eve detection: ≥ 4/5 trials
  • / Act 5

    Secure Message Exchange

    Encrypts a plaintext message with the QKD-derived φCipher key (273-byte ciphertext, one φ-block), decrypts, and verifies exact plaintext recovery. A complete quantum-secure channel using only φCoherent primitives.

    Ciphertext: 273 bytes · Decrypt + verify: ✓
Related

The primitives under test.

This package validates and extends the φCrypt standard — seven cryptographic components covering hashing, encryption, signatures, zero-knowledge proofs, and OpenSSL integration, all derived from the golden ratio with zero free parameters.

φCrypt Standard Quantum Stack Reference Simulator