DRAFT 0.1.0-draft Todo lo que hay aquí es un borrador sin revisar. Nada está listo para producción. Estado y hoja de ruta

Especificación · CCSAX-0004

Suites registry

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. Purpose

A suite is a named, versioned, fixed combination of primitives and parameters. Suites are the unit of crypto-agility in CCSAX: data records which suite protected it (CEF header suite, wrap alg), and policy decides, per suite, what is still allowed. A suite never changes meaning once published: a change of primitive, parameter or construction is a new suite id.

2. Suite identifiers

  • Format: CCSAX-<letter><1–3 digits>, regular expression ^CCSAX-[A-Z][0-9]{1,3}$.
  • Letters in use: S symmetric data/AEAD, H hybrid KEM, G signatures, P password hashing, T token storage.
  • Identifiers are never reused, even after a suite becomes forbidden.

3. States (decryptor policy)

State New data (seal / wrap / sign) Existing data (open / unwrap / verify) Notes
experimental only if the policy explicitly opts in only if the policy explicitly opts in Never for production data. Default policy rejects.
active allowed allowed
deprecated MUST be refused allowed; result flagged needsMigration Migration plan required (CCSAX-0006).
forbidden MUST be refused MUST be refused Data still under it is unreadable by policy; recovery needs an explicit, logged policy override outside the normal API.

Implementations MUST:

  1. reject any suite id not present in the registry they enforce (fail closed);
  2. enforce the table above for every operation;
  3. enforce the suite's CEF role (data or wrap): e.g. a KEM suite in the CEF header suite field is rejected;
  4. never fall back silently to another suite (no downgrade, CCSAX-0006 §4);
  5. load policy from a registry document they trust (shipped with the implementation or signed), never from the envelope.

States are independent of maturity (the promotion ladder in GOVERNANCE.md: idea → specified → analysed → reviewed → audited → core). In 0.1.0-draft, active suites are at maturity specified: they are the suites the reference implementation uses by default, not suites anyone has reviewed.

4. Registry document

registry/suites.json fields per suite: id, title, kind (aead | kem | signature | password-hash | token-mac), cefRoles, state, maturity, primitives (name + precise reference), optional constructions, params (integers), spec, implementedIn, and optional deprecatedSince, forbiddenSince, replacedBy. The JSON Schema enforces types and the required parameters per kind. Every change to the registry requires a CEP; registryVersion follows the project version.

5. Suites

CCSAX-S1

AES-256-GCM [NIST SP 800-38D, FIPS 197] with HKDF-SHA-384 [RFC 5869, FIPS 180-4] for per-envelope key derivation, a 32-byte key commitment and context binding, as specified in CCSAX-0003 §6–§7.

Parameter Value
key 32 bytes
nonce 12 bytes, random, fresh per seal
tag 16 bytes
commitment 32 bytes
invocations per key ≤ 2^32 (NIST SP 800-38D §8.3, random IVs)
CEF roles data, wrap
state / maturity active / specified

Commitment construction: Albertini et al., USENIX Security 2022; Bellare–Hoang, EUROCRYPT 2022 (UtC/HtE). The proof for this exact instantiation is open (Labs L2).

CCSAX-H1

X-Wing [draft-connolly-cfrg-xwing-kem-10]: ML-KEM-768 [FIPS 203] + X25519 [RFC 7748] with the SHA3-256 combiner and label 5c2e2f2f5e5c defined in the draft. Used only to wrap CEF data keys (CCSAX-0003 §7.3); the KEM shared secret is fed to HKDF-SHA-384 with header and context binding.

Parameter Value
public key 1216 bytes
secret key 32 bytes (seed, expanded with SHAKE256)
ciphertext (enc) 1120 bytes
shared secret 32 bytes
CEF roles wrap
state / maturity active / specified

Notes: X-Wing is an Internet-Draft, not an RFC. The draft fixes the encoding of keys and ciphertexts; CCSAX pins revision -10 (a -11 revision changed only an author affiliation, per the Labs L1 survey; to re-check at each registry release). The reference implementation is validated against the draft repository's official vectors. Its dependency @noble/post-quantum is not independently audited (impl/ts/DEPENDENCIES.md).

CCSAX-H2

Hybrid KEM ML-KEM-1024 [FIPS 203] + ECDH P-384 [NIST SP 800-56A Rev. 3, SP 800-186] for deployments that want NIST category 5 / P-384 levels (aligned with the levels in NSA's CNSA 2.0 guidance; CCSAX does not claim CNSA 2.0 compliance). Combiner: the MLKEM1024-P384 instance of draft-irtf-cfrg-concrete-hybrid-kems (revision -04, July 2026, per the Labs L1 survey) built on the framework of draft-irtf-cfrg-hybrid-kems. Exact preset, labels and encodings to verify against the draft text before implementation.

Parameter Value (per @noble/post-quantum 0.7.1 ml_kem1024_p384, which states it follows -03)
public key 1665 bytes
secret key 32 bytes (seed)
ciphertext 1665 bytes
shared secret 32 bytes
CEF roles wrap (same construction as CCSAX-0003 §7.1 with alg = "CCSAX-H2")
state / maturity experimental / idea

Not implemented in 0.1. Promotion to active requires: draft revision pinned, official vectors passing, and a CEP.

CCSAX-G1

Composite signature id-MLDSA65-Ed25519-SHA512 from RFC 10073, "Composite Module-Lattice-Based Digital Signature Algorithm (ML-DSA) for Use in X.509 Public Key Infrastructure" (Ounsworth, Gray, Pala, Klaußner, Fluhrer; Standards Track, November 2026), combining ML-DSA-65 [FIPS 204] and Ed25519 [RFC 8032]. Used for CVL checkpoints (CCSAX-0007) and release signing. Not a CEF suite. State / maturity: experimental / idea. Before activation, a CEP must fix the signed-message encoding for checkpoints and the domain-separation context string.

CCSAX-P1

Password hashing with Argon2id [RFC 9106]. Baseline parameters: memory 19 MiB (19 456 KiB), iterations 2, parallelism 1, 16-byte random salt, 32-byte output: the minimum configuration in the OWASP Password Storage Cheat Sheet (retrieved 2026-12-05; re-verify at each registry release). Deployments SHOULD use more memory when they can afford it.

Re-hash policy: hashes MUST be stored with their parameters (PHC string format). On successful verification, if the stored parameters are below the current registry parameters, the implementation SHOULD re-hash the password and replace the stored value. State / maturity: active / specified. Not implemented in 0.1.

CCSAX-T1

Storage of high-entropy bearer tokens (session tokens, API keys, password-reset links): store HMAC-SHA-256(K_t1, token) [RFC 2104, FIPS 198-1], never the token. Tokens MUST carry at least 256 bits of entropy from a CSPRNG; the HMAC is then not about slowing guessing (no password hashing is needed), but about making a database leak useless without K_t1. K_t1 is derived per tenant: deriveSubkey(KEK, "t1.token-mac") (CCSAX-0005 §4). Verification compares in constant time. State / maturity: active / specified. Not implemented in 0.1.

6. Adding or changing a suite

  1. Open a CEP (Standards Track) with the full definition, citations and test vectors.
  2. New suites enter as experimental.
  3. experimental → active needs: a complete specification, vectors, an implementation passing them, and maintainer approval through the CEP.
  4. active → deprecated names a replacement and a migration window.
  5. * → forbidden MAY be fast-tracked when a practical attack is known; it is announced in a public advisory (SECURITY.md).

7. Security considerations

The registry is security-critical configuration. An attacker who can edit the registry an implementation trusts can re-enable a forbidden suite. Implementations MUST ship the registry with the code or verify a signature on it (CCSAX-G1, once active). The state of a suite never comes from the data being opened.

8. References

  • [RFC 2119], [RFC 8174] — BCP 14 key words.
  • [NIST SP 800-38D] M. Dworkin, GCM and GMAC, November 2007.
  • [FIPS 197] AES, 2001 (updated 2023). [FIPS 180-4] SHS, August 2015. [FIPS 202] SHA-3, August 2015.
  • [RFC 5869] H. Krawczyk, P. Eronen, HKDF, May 2010.
  • [FIPS 203] ML-KEM, August 2024. [FIPS 204] ML-DSA, August 2024.
  • [RFC 7748] Elliptic Curves for Security, January 2016. [RFC 8032] EdDSA, January 2017.
  • draft-connolly-cfrg-xwing-kem-10 (D. Connolly, P. Schwabe, B. Westerbaan), work in progress.
  • draft-irtf-cfrg-hybrid-kems and draft-irtf-cfrg-concrete-hybrid-kems-04, IRTF CFRG, work in progress.
  • RFC 10073, Composite ML-DSA for Use in X.509 PKI, November 2026.
  • [NIST SP 800-56A Rev. 3] Pair-wise key establishment using discrete logarithm cryptography, April 2018. [NIST SP 800-186] Discrete logarithm-based cryptography: elliptic curve domain parameters, February 2023.
  • [RFC 9106] A. Biryukov, D. Dinu, D. Khovratovich, S. Josefsson, Argon2, September 2021.
  • OWASP Password Storage Cheat Sheet (living document, retrieved 2026-12-05).
  • [RFC 2104] H. Krawczyk, M. Bellare, R. Canetti, HMAC, February 1997. [FIPS 198-1] The Keyed-Hash Message Authentication Code, July 2008.
  • A. Albertini et al., USENIX Security 2022; M. Bellare, V. T. Hoang, EUROCRYPT 2022 (see CCSAX-0003 §15).