Z6P Protocol โ€” RFC Pending

Senary Cyclic
Protocol

Z6P is a post-quantum key encapsulation protocol built on Z6 (integers modulo 6). 64-element key space, 165 bits of entropy, HKDF-SHA256 / AES-256-GCM sealed.

Z6P Protocol

The Senary Cyclic Protocol defines a complete post-quantum key encapsulation mechanism over Z6 topology.

๐Ÿงฌ

Z6 Key Space

64 elements drawn uniformly from Z6 (0โ€“5) using a CSPRNG. Each element encodes ~2.585 bits, yielding 165 bits of combinatorial entropy. Packed as 24 bytes (3 bits per element).

๐Ÿ›ก๏ธ

Topological Shielding

Key validity is verified via a zero-divisor moat โ€” the adjacency graph of the key space must form a connected, non-bipartite component under the Z6 multiplication topology.

๐Ÿ”

KEM Construction

KEM = HKDF-SHA256(key_space โ€– context) โ†’ AES-256-GCM key. Encrypted payload carries encapsulated Z6 key, IV, auth tag, and topological proof in a single compact envelope.

โšก

Zero-Trust / Ephemeral

All keys are single-use. Server holds no key state. Ephemeral key exchange via /exchange endpoint. Forward secrecy by design โ€” compromise of a session key reveals nothing about past or future sessions.

Specifications

Z6P protocol parameters and cryptographic primitives.

Modulus

Z6
Integers modulo 6. Non-prime ring with zero-divisors leveraged for topological validation.

Key Elements

64
8ร—8 grid layout. Each element โˆˆ {0,1,2,3,4,5}.

Entropy

165 bits
64 ร— log2(6) โ‰ˆ 165.0 bits of combinatorial key entropy.

Footprint

24 B
3 bits per element, 192 bits total. Smaller than AES-256 key.

KDF

HKDF-SHA256
NIST-standard key derivation with Z6 key as IKM.

Cipher

AES-256-GCM
Authenticated encryption with 96-bit IV, 128-bit auth tag.

Live KEM Demo

Generate a Z6 key, inspect its topology, and perform a simulated encapsulation.

Z6
0
Keys Generated
--
Entropy (bits)
--
Topology

Z6 Key Visualization

Key Details

Click "Generate Key" to begin.

Actions

Z6P KEM v3.2.1 โ€” Ready. Click "Generate Key" to begin.