The key words in this document are to be interpreted as described in BCP 14 [RFC 2119] [RFC 8174] when, and only when, they appear in all capitals.
1. What CCSAX is
CCSAX (Composable Cryptographic Security Architecture) is a specification and reference implementation for protecting application data at rest so that the cryptography can be changed — new algorithms, new keys, retired suites — without breaking existing data or the trust placed in it.
It is not a new cipher, not a replacement for TLS, and not a blockchain. Transport security stays with TLS 1.3 (with a hybrid key exchange such as X25519MLKEM768 where available).
2. Two tracks
| CCSAX Core | CCSAX Labs | |
|---|---|---|
| Content | Engineering built only from standardised, reviewed primitives and published constructions | Open research questions and experimental constructions |
| May protect production data | Only after the review process (GOVERNANCE.md), never at 0.1.0-draft | Never, until promoted to Core |
| Rule | MAY compose standard primitives; MUST NOT invent primitives | Every output carries a status label |
| Where | spec/, registry/, impl/ |
labs/ |
A primitive here means a block cipher, hash, KEM, signature scheme, or similar. Composing them (e.g. deriving a commitment from HKDF, or binding a context into AAD) is allowed in Core when the composition follows a published construction, is cited, and is flagged for analysis.
3. Defense-in-depth rule
Any experimental layer MUST be added on top of a Core layer, never used instead of it. Breaking the experimental part MUST NOT leave data weaker than Core alone would have. Concretely: an experimental KEM may wrap a DEK in addition to CCSAX-H1, never as the only wrap; an experimental transform may post-process a CEF envelope, never replace CEF's AEAD.
4. The six Core components
| # | Component | Spec | 0.1 status |
|---|---|---|---|
| 1 | CEF — CCSAX Envelope Format: versioned, self-describing ciphertext container with context binding and key commitment | CCSAX-0003 | specified; implemented (TS) |
| 2 | Suites registry: named suites with states experimental / active / deprecated / forbidden |
CCSAX-0004, registry/suites.json |
specified; S1, H1 implemented |
| 3 | Key hierarchy: root → tenant KEK → DEK; labelled HKDF purposes; rotation, rewrap, crypto-shredding | CCSAX-0005 | specified; helpers implemented |
| 4 | Agility & migration engine: detect, plan, rewrap/re-encrypt, verify, log | CCSAX-0006 | specified (draft); engine in 0.2 |
| 5 | CVL — CCSAX Verifiable Log: RFC 9162-style Merkle log of key-lifecycle and policy events | CCSAX-0007 | draft; implementation in 0.2 |
| 6 | Assurance kit: CC0 vectors, negative tests, property tests, fuzz targets, conformance suite, reproducible builds | vectors/, impl/ts/test, impl/ts/fuzz |
vectors, tests, fuzz smoke; conformance suite in 0.2 |
application ──seal/open(context)──► CEF ──uses──► suites (S1 data, H1/S1 wrap)
│ │
│ └── keys from ──► key hierarchy (root → KEK → DEK)
│ │
└── inventory / migrate ──► migration engine ─────────┤
│ │
└── logs events ─► CVL (checkpoints signed with G1)
registry/suites.json ──policy──► every decryptor
5. Design principles
- Standard primitives only in Core, cited precisely, with draft versions pinned.
- Fail closed. Unknown versions, suites, fields or keys are errors. No silent fallback.
- Everything authenticated, context bound. A ciphertext only opens for the context it was written for (CCSAX-0003 §5).
- Agility through data, policy through configuration. Envelopes say which suite and key they use; the registry, never the envelope, says what is allowed.
- Small, strict parsers. A deterministic CBOR subset with hard size limits.
- Verifiable operations. Key-lifecycle events are logged in a tamper-evident log (CVL).
- Honest status. Every document and suite carries a status and a maturity.
6. Scope
In scope for 0.x: data at rest in multi-tenant applications; key wrapping to symmetric KEKs and to hybrid public keys; password and token storage guidance (P1, T1); key lifecycle transparency.
Out of scope for 0.1 (listed as possible Labs lines): zero-knowledge proofs, MPC, FHE, threshold trust, custom transport protocols.
7. Adoption model
Adopters integrate @ccsax/core (or a future conforming implementation) behind their own storage
layer. The first adopter is Citeri (a SaaS for beauty salons in Spain); it does not own the project,
and it will only run Core, and only after external review (roadmap 0.5). The project contains no
adopter code or data.
8. References
[RFC 2119], [RFC 8174]; component references in CCSAX-0003 to CCSAX-0007; governance in GOVERNANCE.md.