CORE
1,459 bytes / envelope
The baseline seal for general long-term archives — documents, records, and research data that must remain confidential for decades.
- Full two-KEM combiner
- Header-only re-wrap
- Passport stub in header
Home/Envelope
Everything NIRVQ seals lives in an NVQ4 envelope. The header carries the key material and a Passport stub; the body stays untouched by every maintenance operation for the life of the archive.
LIVE DEMONSTRATION
Pick a profile, seal the sample text, and inspect the envelope the reference format produces — header fields, KEM ciphertext sizes, and a real SHA-384 body digest computed on your device.
Runs entirely in your browser: the digest below is a real SHA-384 computed on this device, and the envelope size is the reference implementation's KAT-measured size for the selected profile — each profile carries different components, and only VAULT carries both KEM ciphertexts. The rows add up to the total. The seal itself is illustrative: the production seal runs the full combiner in the reference implementation.
Nothing sealed yet.
Choose a profile and seal the sample text.
LIFECYCLE
An archive is not sealed and forgotten. Algorithms age, custodians change, and eventually data must die. NVQ4 specifies each operation so none of them ever exposes the plaintext.
Envelope lifecycle — NVQ4 0x0400
8 sealing steps · one error: ERR-OPEN-FAILED · object_id never changes
The lifecycle — seal, live, open, re-wrap, burn
Fresh DEK + object_id
8 steps, then emitWire bytes anywhere
file · store · databaseTag + passport check
all-or-nothingHeader-only, new epoch
body never re-encryptedOld epoch destroyed
after all successors verifySealing — the 8 steps
Random 256-bit
never derivedFresh random 32 B
never changes · fresh nonce_b 12 BAbort if any missing
no reduced-slot sealOne encapsulation per AND-set slot
VAULT: two ciphertexts, two 32 B secretsAES-256-GCM
AAD = framed object IDSHA-384(ciphertext)
kept outside headerKEK wraps the DEK
header hashed · nonce_w derivedHMAC-SHA-384 tag
secrets erasedEnvelope anatomy — what is on the wire
Framed object ID · epoch
hashed at seal · header_hash = SHA-384DEK under KEK · body under DEK
wrapped_dek 48 B (32 B DEK + 16 B tag)HMAC-SHA-384 tag, 32 B
body_digest 48 B · outside headerSuccessor verification — before any burn
The identity survives re-wrap
Hence the same body
Byte-identical bytes
And the successor opens under its epoch
_unwrap_dek_only checks tag, header hash and body_digest — without decrypting the predecessor body (LC-2)
Profiles — slot map and birth overhead (measured)
| Profile | slot_map | AND set | What travels | Birth overhead |
|---|---|---|---|---|
| CORE | 0x01 | {1} | ML-KEM-768 only | 1,433 B |
| VAULT-FEDERAL | 0x05 | {1, 3} | ML-KEM-768 + 48 B anchor commitment | 1,502 B |
| VAULT | 0x07 | {1, 2, 3} | ML-KEM-768 + HQC-192 + 48 B anchor commitment | 10,495 B |
No-burn rule: an epoch may not burn while any live (unmigrated, unverified) envelope remains under it. A burned epoch’s envelopes can never open again — which is why successor verification is load-bearing.
Burn machine: 0 Gate (all gate items present; no emergency waiver, ever) · 1 Successors (no-burn rule re-checked) · 2 Finalise (attestations due within 7 days) · 3 Declare (≥ 14 days after the first attestation) · 4 Destroy (keys erased, backup KEKs zeroed) · 5 Audit (old opens fail, new opens succeed, backup restores refused).
LC-2 — the property the harness proved: re-wrap never opens predecessor bodies — W3 harness on real KEMs: 1,000 / 1,000 envelopes re-wrapped, predecessor bodies opened during re-wrap: 0 / 1,000.
One error, always. Any failure — tampered header, wrong epoch, burned epoch, bad tag, truncated bytes — raises only ERR-OPEN-FAILED. No per-slot, per-policy, or per-tag error ever leaks.
STEP 1 — SEAL
Content is sealed under the combined key. The body digest sits outside the canonical header, and the body is authenticated against the framed object ID.
STEP 2 — RE-WRAP
When algorithms or custodians change, only the header is re-wrapped under fresh keys. The body is never decrypted — a property verified exhaustively after an early design flaw was found and fixed.
STEP 3 — VERIFY
A normative four-step procedure confirms a re-wrapped envelope legitimately succeeds its predecessor before the old header is retired.
STEP 4 — BURN
At end of life, governance can burn an entire epoch of headers, rendering the sealed bodies permanently unrecoverable — destruction as a specified operation, not an accident.
PROFILES
Profiles tune the envelope to the assurance environment. Sizes below are the reference implementation's known-answer-test envelopes on the real-KEM backend — measured, not modelled.
CORE
1,459 bytes / envelope
The baseline seal for general long-term archives — documents, records, and research data that must remain confidential for decades.
VAULT
10,521 bytes / envelope
The full-assurance profile for high-value key material and custody archives, carrying the complete key-service and survival metadata in-envelope.
VAULT-FEDERAL
1,528 bytes / envelope
A constrained profile shaped for institutional and public-sector archives, with a compact header and strict canonical layout.
Measured on the reference build (liboqs 0.16.0): ML-KEM-768 ciphertext 1,088 B · HQC-192 ciphertext 8,978 B · KAT-measured envelope sizes (26-byte body): CORE 1,459 B · VAULT-FEDERAL 1,528 B · VAULT 10,521 B. Birth overhead at an empty body: 10,495 B (VAULT).