DRAFT 0.1.0-draft Everything here is a draft and unreviewed. Nothing is ready for production use. Status and roadmap

Architecture

Six components, one rule: compose, never invent.

CCSAX protects data at rest. Each layer has one job, so any of them can be reviewed, replaced or migrated without rebuilding the rest.

CCSAX architecture, layer by layer Applications call CCSAX to encrypt and decrypt with a context. The CEF envelope format sits on top, checked against the suites registry. Below it, the key hierarchy. Beside each other, the agility and migration engine and the CCSAX Verifiable Log, which records key-lifecycle events. All of Core rests on standardised primitives and is tested by the assurance kit. CCSAX Labs sits apart, dashed, and can only reach Core through the promotion ladder. TLS transport is out of scope. Applications and adopters encrypt(data, context) · decrypt(envelope, context) 01 · CEF CCSAX Envelope Format header bound as AAD · key commitment · ccsax1. 02 · SUITES Suites registry policy S1 · H1 · H2G1 · P1 · T1 no silent downgradeforbidden → reject 03 · KEYS Key hierarchy root → tenant KEK → DEK · ccsa/v1/<purpose> 04 · AGILITY Agility & migration engine detect → plan → rewrap → verify 05 · CVL CCSAX Verifiable Log Merkle log · signed with CCSAX-G1 STANDARDISED PRIMITIVES · COMPOSED, NEVER INVENTED AES-256-GCMHKDF-SHA-384X25519ML-KEM-768/1024ECDH P-384ML-DSA-65Ed25519Argon2idHMAC-SHA-256 06 · ASSURANCE Assurance kit vectors (CC0) · negative tests · property tests · fuzzing · conformance · reproducible builds CCSAX LABS Research L1 combinersL2 committing AEADL3 agility proofsL4 transparencyL5 diversity status-labelled no production data promotion by CEP + review Transport: TLS 1.3 with X25519MLKEM768 — out of scope. CCSAX does not replace TLS.
Select a component to jump to its description. Solid: Core. Dashed: Labs. Dotted: outside CCSAX.
  • CCSAX Core
  • CCSAX Labs
  • Standardised primitives
  • Outside CCSAX

01 — Components

What each layer does

01 · CEFCCSAX-0003

CCSAX Envelope Format

A self-describing, versioned ciphertext container. The whole header is authenticated as AEAD associated data, and the application context is bound into it without being stored.

Deterministic CBOR · text form ccsax1.… · optional key commitment

02 · SuitesCCSAX-0004

Suites registry

Named, versioned suites, each with a state. Decryptors enforce policy: no silent downgrade, and forbidden suites are rejected.

experimental · active · deprecated · forbidden

03 · KeysCCSAX-0005

Key hierarchy

Root key → per-tenant KEK → per-object or per-batch DEK. Purpose separation through labelled HKDF, rotation without downtime, lazy re-wrap and crypto-shredding per tenant.

info = ccsa/v1/<purpose> · versioned key ids

04 · AgilityCCSAX-0006

Agility & migration engine

Finds data under deprecated suites or keys, then plans, re-wraps or re-encrypts, verifies and logs. Migration is resumable and auditable.

detect → plan → rewrap / re-encrypt → verify → log

05 · CVLCCSAX-0007

CCSAX Verifiable Log

An append-only Merkle log, in the style of RFC 9162, of key-lifecycle and policy events. Checkpoints are signed with CCSAX-G1. It never holds secrets or personal data. It is not a blockchain.

create · rotate · revoke · migrate · suite state change

06 · Assurance

Assurance kit

Test vectors (CC0), Wycheproof-style negative tests, property tests, fuzz targets, a conformance suite and reproducible builds.

vectors · negative tests · fuzzing · conformance

02 — Up close

The envelope, the keys and the log

ccsax1
TenantPurposeObject
The work piece: plaintext card, then sealed envelopeOpened: commitment and GCM tag verifyRejected: wrong context, generic errorCEF binds the application context into the associated data and the key derivation without storing it. The opener must supply the same tenant, purpose and object: change any one and the derived key changes, the commitment no longer matches, and opening fails with one generic error.
Text description

Left to right: a magazine feeds a plaintext card onto a conveyor. A bank of three stamps marks it with the context fields tenant (t-0042), purpose (notes) and object (obj-1187). These marks stand for data that is authenticated but not stored. A press then seals the card with CCSAX-S1, AES-256-GCM, turning it into an envelope; a round die adds the key commitment, derived with HKDF-SHA-384 from the data key, shown as a seal with a key mark; and a riveter attaches the header plate: format version, suite id, key id and version, and the 96-bit nonce. The whole header is authenticated as associated data. At the right end an opener has three knobs for its own context. If all three match, its die's mark lines up with the seal, the die seats and the card comes out. If any knob differs, the mark points elsewhere, the die stops above the seal, the lamp turns red and the envelope stays closed.

CEF — the whole header is authenticated as associated data; the context is bound but not stored.
Tenant
Reader head: the rewrap stepKEK activeKEK destroyed: tenant crypto-shreddedRoot key, then one KEK per tenant, then one DEK per object. Rotating a KEK re-wraps each DEK under the new version (rewrap): only the small wrapped keys change, the encrypted objects stay where they are. Destroying a tenant's KEK crypto-shreds that tenant: its DEKs can no longer be unwrapped, and no other tenant is affected.
Text description

The root key sits in a module on top of the cabinet; in production it lives in a KMS or HSM, and in version 0 it may be a file. It wraps three tenant KEKs, drawn as key plates standing in holders, with one dot per key version. Each tenant has a drawer of five DEK cards; a DEK is the data key of one object, stored wrapped by the tenant's KEK. The tab on each card shows which KEK slot wraps it. Rotate moves a tenant to a new KEK version: the new plate rises in the free slot, the drawer steps out card by card under the reader head, each card is re-wrapped and its tab moves to the new slot, then the old KEK version is retired. The rack of encrypted objects on the right does not move during any of this. Crypto-shred destroys both plates of a tenant: the drawer is barred, its lamp turns red and that tenant's row of objects becomes unreadable, while the other tenants keep working. Reset restores the starting state.

Key hierarchy — rotation re-wraps data keys without touching data; deleting a tenant key crypto-shreds that tenant.
CCSAX-G1
Entry 3Inclusion proof
Inclusion proof: sibling hashes for entry 3Recomputed root equals the signed checkpointAltered entry and every hash it changesCVL is an append-only Merkle log of key-lifecycle and policy events, in the style of RFC 9162. Each checkpoint signs the tree size and root hash with CCSAX-G1. Altering any old entry changes every hash on its path to the root, so the recomputed root no longer matches the signed checkpoint. The log holds no secrets and no personal data; it is not a blockchain.
Text description

The front rail holds one tile per log entry; dots on each tile give the event kind: one for create, two for rotate, three for revoke, four for migrate, five for a suite state change. Behind the rail, the board holds the Merkle tree. Each leaf block is the hash of its entry, SHA-256 with a 0x00 prefix; each block above is SHA-256 of 0x01 followed by its two children, as in RFC 9162; when the number of entries is not a power of two, the last subtree is smaller and links skip a row. Appending an event slides a new tile in, then the gantry stamps the new leaf and every node on its path up to the root, and the press on the right prints a new checkpoint signed with CCSAX-G1, composite ML-DSA-65 plus Ed25519. Altering entry 3 scores its tile; the leaf, the nodes above it and the root turn red, and the lamp beside the checkpoint turns red because the recomputed root differs from the signed one. The inclusion proof for entry 3 lights the sibling hashes a verifier needs to rebuild the path to the root.

CVL — append-only, signed checkpoints, no secrets or personal data.