Home/Technology

One seal, two independent locks

The NIRVQ combiner takes the shared secrets from both KEMs and derives the sealing key through HKDF-SHA-384 — so that under the construction's stated assumptions, an attacker must defeat both a lattice problem and a coding problem to recover anything.

COMBINER NIRVQ-COMB-v1 KDF HKDF-SHA-384 BACKEND liboqs 0.16.0

THE COMBINER

How the two locks become one key

Every seal runs both encapsulations in parallel. Neither shared secret is ever used alone — the combiner binds them, with the envelope's context, into the single key that seals the body.

The combiner — NIRVQ-COMB-v1

HKDF-SHA-384  ·  domain “NIRVQ-COMB-v1”  ·  AND-survival Specified, gated — not demonstrated  ·  A-EXT unendorsed

Inputs — three independent secrets

ss_1 · Slot 1

ML-KEM-768 shared secret, 32 B
FIPS 203 · lattice

pk 1,184 B · sk 2,400 B · ct 1,088 B · ss 32 B

ss_2 · Slot 2

HQC-192 (liboqs “HQC-3”) shared secret, 32 B
Code-based · 2025-08-22 spec, not v5.1

pk 4,514 B · sk 4,602 B · ct 8,978 B · ss 32 B

S_3 · Slot 3

Anchor secret, 32 B
Threshold-shared — never held by one custodian

Shamir · Pedersen DKG · never in the envelope — only its 48 B SHA-384 commitment travels
HKDF-SHA-384  ·  “NIRVQ-COMB-v1” →  KEK  ·  K_TAG  ·  wrap nonce

Outputs — derived keys

KEK · 32 B

Wraps the DEK with AES-256-GCM, AAD = header_hash

256-bit · distinct label “KEK”

K_TAG · 32 B

Keys the envelope tag — HMAC-SHA-384, tag truncated to 32 B

256-bit · distinct label “TAG” · KEK ≠ K_TAG

Wrap nonce · 12 B

nonce_w — derived from the header hash, never stored on the wire

label “NONCE-W” · binds the wrap to the exact header

Profiles — the AND set

CORE · 0x01

Requires { Slot 1 } — ML-KEM only

IKM ss_1 · 32 B

VAULT-FEDERAL · 0x05

Requires { Slot 1, Slot 3 } — ML-KEM + anchor

IKM ss_1 ‖ S_3 · 64 B

VAULT · 0x07

Requires { Slot 1, 2, 3 } — both KEMs + anchor

IKM ss_1 ‖ ss_2 ‖ S_3 · 96 B
SlotSecretSourceSizes (liboqs 0.16.0)
1ss_1, 32 BML-KEM-768 encapsulationpk 1,184 B · sk 2,400 B · ct 1,088 B · ss 32 B
2ss_2, 32 BHQC-192 (liboqs “HQC-3”) encapsulationpk 4,514 B · sk 4,602 B · ct 8,978 B · ss 32 B
3S_3, 32 BAnchor secret, threshold-held by the key servicesecret 32 B · commitment SHA-384, 48 B

DEK: fresh, never derived. The data-encryption key is a fresh random 256-bit value per object — never derived from the combiner, never reused, never stored; the only copy in the envelope is the wrapped DEK (48 B: 32 B DEK + 16 B AES-GCM tag).

Seal aborts, never downgrades. Seal raises SealError if any AND-set key is unavailable — NIRVQ never emits a reduced-slot envelope. The anchor commitment is SHA-384(frame("NIRVQ-ANCHOR-v1", epoch_id_3, S_3)); S_3 itself enters the combiner only inside the key service. HQC’s 4,602 B key is expanded liboqs storage — the normative dk is the 32 B seed (D-17); it never enters an envelope or the KDF.

Figure — NIRVQ-COMB-v1. The three slot secrets (ML-KEM-768, HQC-192, threshold anchor S_3) enter HKDF-SHA-384 together; the derived KEK wraps the DEK and K_TAG keys the envelope tag. AND-survival is specified and gated (G-1) — not yet demonstrated.
ML-KEM-768 CIPHERTEXT
1,088 B

Measured on the real-KEM backend, liboqs 0.16.0.

HQC-192 CIPHERTEXT
8,978 B

Code-based ciphertexts are larger — the price of the second hardness family.

BIRTH OVERHEAD
10,495 B

Measured per-envelope overhead at birth in the reference build.

SEAL THROUGHPUT
7.36%

Of raw AES throughput; the seal path is digest-bound — the honest cost of binding two KEMs and a full header into every object.

MATURITY

Three levels of maturity — stated plainly

Not everything in NIRVQ stands on equal footing, and the specification says so in a normative table. We publish it the same way.

LevelComponentStandingWhat it means
LEVEL 1 ML-KEM-768 STANDARDISED Final NIST standard, FIPS 203. The mature leg of the pair.
LEVEL 2 HQC-192 STANDARDISATION PENDING Selected by NIST for standardisation as FIPS 207; no final-standard date is stated or assumed. The implementation in liboqs 0.16.0 follows the August 2025 HQC specification.
LEVEL 3 NIRVQ combiner NOT INDEPENDENTLY PROVEN The AND-survival construction is specified and adversarially tested locally. It has not yet passed independent cryptographic review — that review (gate G-1 / G-COMB) is a precondition for build funding, by design.
Why publish the weakest level?

Because a sealing system that hides its own open questions cannot be trusted with fifty-year archives. The combiner's status — specified, locally tested, independently unproven — is the same on this page as it is in the proposal and the documentation. See the Evidence page for the full gate ledger.

INSIDE A SEAL

Eight steps from plaintext to envelope

What actually happens, in order, when NIRVQ seals an object under VAULT. The full derivation — IKM layout, HKDF expansions, the anchor commitment — is specified in the Combiner & Envelope documentation.

STEP 1

Fresh DEK

A new random 256-bit data-encryption key is generated for this object alone. It is never derived from anything.

STEP 2

Object ID

A fresh random 32-byte object_id is assigned. It will identify this object for its entire life, across every re-wrap.

STEP 3

Fetch the AND set

The epoch's ML-KEM key, HQC key, and anchor secret are obtained. If any one is unavailable, sealing aborts — NIRVQ never emits a reduced-slot envelope.

STEP 4

Encapsulate twice

ML-KEM-768 and HQC-192 encapsulate independently, producing two ciphertexts and two 32-byte shared secrets.

STEP 5

Encrypt the body first

The body is encrypted under the DEK (AES-256-GCM, fresh nonce, AAD = the framed object ID) — before any header exists.

STEP 6

Digest the body

body_digest = SHA-384(body_ciphertext) — computed over the ciphertext, and kept outside the canonical header.

STEP 7

Combine & wrap

The canonical header is hashed; the combiner derives KEK, K_TAG, and the wrap nonce from all three secrets; the DEK is wrapped under the KEK.

STEP 8

Tag, emit, erase

The HMAC-SHA-384 tag is computed over header, wrapped DEK, and body digest; the envelope is emitted; every secret in memory is erased.

ATTACK-MODEL TESTING

T-COMB-15: testing against the adversary of 2060, not 2026

The classical test battery proves the combiner behaves against today's attacker. T-COMB-15 — specified in v4.1, part of the G-COMB pass condition — models the three ways a fifty-year archive actually dies. Status: specified, not yet implemented, and recorded by a skipping test rather than by silence.

T-COMB-15 (a) — HNDL + ANCHOR LEAK

Harvested copies, leaked anchor

Assume the adversary harvested envelopes for years and later obtains an anchor leak. The test runs the leak against the harvested set — the worst realistic combination — not against a fresh seal.

T-COMB-15 (b) — GROVER-ERA MARGINS

Symmetric margins, stated explicitly

Generic quantum search halves effective symmetric strength. NIRVQ's 384-bit hashing and 256-bit keys are chosen so the post-Grover margins stay wide — and the test states that margin argument explicitly instead of assuming it.

T-COMB-15 (c) — FAMILY-BREAK TIMING

The race the lifecycle exists to win

A break arrives as a process — weakening results, then collapse. The test models whether beacon announcement → re-wrap → verify → burn completes inside a realistic break-arrival window.

The full threat model

Six adversary classes and twelve attack analyses — each with its mitigation and its honest residual status, from the decapsulation budget (now operable for both limbs via the landed FO validity checker — ML-KEM-768 + HQC-192, wired at the production call sites) to the silent-compromise scenarios that still fail — the ACSP gate does not pass and is carried as accepted residual R-ACSP-1 — are documented in Threat Model & Security.

WHO THIS IS FOR

Who this is for

NIRVQ is built for data that must stay secret for decades and be provable long after its owners are gone. The proposal's wedge test admits a data class only at 6/6 — Longevity ≥ 20 years, Owner absence, and Proof burden all at 2/2. Banks sealing KMS root keys and 30+ year records score 6/6; AI labs qualify only in the narrow case of model weights under a 20+ year escrow or regulatory archive duty; blockchain use is Digital Asset Preservation at rest — DAO treasuries, cross-chain key custody, post-quantum migration of seed backups, validator key protection — all Target, with no custody partner, no LOI, and no chain integration. Applicability, not customers: zero design partners, zero signed LOIs. Read the full map in Use Cases — Banks, AI & Web3.