Status: 0.1.0-draft. Everything in this repository is a draft and has not been reviewed by independent cryptographers. Contributions of every kind are welcome, and attempts to break things are among the most valuable.
Thank you for your interest in CCSAX (Composable Cryptographic Security Architecture). Please read GOVERNANCE.md for how decisions are made and the Code of Conduct, which applies to every project space.
Security vulnerabilities are not reported through issues. Follow SECURITY.md.
Ways to contribute
Issues
Open an issue for bugs, unclear or contradictory specification text, wrong citations, missing test vectors, documentation problems or questions. Please state which document and section, or which file, version or commit, the issue is about.
CEPs (CCSAX Enhancement Proposals)
Changes to a normative specification, to the suites registry (registry/suites.json), to
the promotion status of a construction, or to governance need a CEP. Read
spec/CEP-0000-process.md, copy the template at its end, and
open a pull request that adds spec/CEP-XXXX-short-title.md. A number is assigned when
the CEP enters Discussion. It is a good idea to open an issue first to discuss the idea.
Pull requests
- Fork the repository and create a branch from
main. - Keep each pull request focused on one change.
- Sign off every commit (see DCO below).
- Run the checks for the part you changed (for
impl/ts, see below). - Describe what you changed, why, and how you verified it. If AI tools helped, say so (see "AI-assisted contributions").
- A maintainer reviews the pull request. Changes to normative text may require a CEP.
Developer Certificate of Origin (DCO)
CCSAX uses the Developer Certificate of Origin 1.1 instead of a contributor licence agreement. By signing off a commit you certify that you wrote the contribution or otherwise have the right to submit it under the project's licences.
Sign off each commit with:
git commit -s
This adds a line such as Signed-off-by: Your Name <you@example.org> to the commit
message. The name and address must be yours; pseudonyms are acceptable if you use them
consistently and can be contacted at the address given. Pull requests with unsigned
commits cannot be merged.
Licences of contributions
By contributing, you agree that your contribution is licensed as follows:
| What | Where | Licence |
|---|---|---|
| Code | impl/, scripts, tooling, code files anywhere |
Apache License 2.0 (LICENSE) |
| Specifications and documents | spec/, labs/, registry/ prose, docs, *.md (except code) |
CC BY 4.0 (LICENSE-docs) |
| Test vectors | vectors/ |
CC0 1.0 (vectors/LICENSE) |
Do not submit material you cannot license this way (for example text copied from a paper or standard whose licence does not allow it). Quote briefly and cite instead.
Hard rules (for humans and AI)
These rules come from the founding brief and are not negotiable in review:
- No invented primitives in Core. CCSAX Core composes standardised, reviewed primitives and published constructions. New ideas go to CCSAX Labs, carry a status label and climb the promotion ladder described in GOVERNANCE.md.
- Defense in depth. An experimental layer is added on top of a standard layer, never instead of it.
- Cite precisely. Every standard and paper is cited with title, authors, venue and
year, or with the exact draft name and version (for example
draft-connolly-cfrg-xwing-kem-NN, with the real version number). If you are not sure a citation is correct, write "to verify" next to it rather than guessing. - No real personal or customer data, anywhere: not in examples, tests, vectors, issues or logs. Use clearly fictitious data.
- Honest labels. Say exactly what is standard, what is experimental and what is
unreviewed. Keep the
0.1.0-draftstatus visible. - No hype. Do not write "quantum-proof", "unbreakable", "military-grade", "the most secure" or similar claims. Describe security properties and their assumptions instead.
- No secrets in the repository, including test keys that look like production keys. Test keys are labelled as test keys.
Coding standards for impl/ts
The reference implementation is the package @ccsax/core.
TypeScript in strict mode, ES modules only (
"type": "module").Node.js ≥ 22.
Pinned dependencies. Exact versions in
package.json(no^or~), committedpackage-lock.json. New dependencies need a justification in the pull request, and their audit status must be stated honestly (checked, not assumed). Prefernode:cryptoand the existing audited libraries.Run the checks from inside
impl/ts:cd impl/ts npm ci && npm testNever weaken a test to make it pass: do not delete or loosen assertions, skip tests or change expected values without explaining why the old expectation was wrong.
Test vectors are reproducible. After any change that can affect them, regenerate with:
npm run vectorsThe output in
vectors/must be byte-identical to the committed files, unless the pull request intentionally changes the vectors and explains why (normally through a CEP).Fail closed: parsing is strict, sizes are bounded, and errors returned to untrusted callers are generic.
Use constant-time comparisons for secrets and tags; never log keys, plaintexts or nonces.
Add negative tests (Wycheproof-style) for every new parsing or verification path.
Documentation style
- English, plain and precise. Use RFC 2119 / RFC 8174 key words (MUST, SHOULD, MAY) only in normative text, as described in CEP-0000.
- Mark open items with
TODOand unverified facts with "to verify".
AI-assisted contributions
AI-assisted contributions are welcome, and must be disclosed:
- say in the pull request which tools or models you used and for what;
- add a
Co-Authored-By:trailer (or an equivalent note) to commits with substantial AI-generated content; - for Labs work, archive prompts and outputs as described in AI-DISCLOSURE.md;
- you remain responsible for the contribution: you must have read it, checked it and be able to defend it in review. Your DCO sign-off covers AI-assisted content too.
This document is licensed under CC BY 4.0 (see LICENSE-docs).