Crypto building blocks
Reusable cryptographic primitives grouped into CDK workspace crates. The algorithms take explicit keys, nonces, randomness and buffers; they import no IC API and have no dependency on application state or persistence engines.
Start with the algorithm index for family descriptions and links to each crate's API, variants, vectors and source provenance. Common foundations include hash/MAC/KDF, symmetric encryption, curves, secp256k1 and HPKE. Security checks and implementation status distinguish standard formats from experimental constructions and remaining review work.
Registry packages
Use the family crate for the primitive you need. Cargo resolves the SDK's optimized sources under separate package names. This preserves the upstream Rust import names and lets independent reference tests keep their upstream registry dependencies.
| Package | Source provenance |
|---|---|
cdk-rsx-crypto-blake3 |
BLAKE3 |
cdk-rsx-crypto-curve25519-dalek |
Curve25519 Dalek |
cdk-rsx-crypto-ed25519-dalek |
Ed25519 Dalek |
cdk-rsx-crypto-x25519-dalek |
X25519 Dalek |
cdk-rsx-crypto-k256 |
k256 |
cdk-rsx-crypto-mlkem-portable |
FIPS 203 portable backend |
Each family guide records its production interfaces, experimental variants, and test evidence. The registry uses the same feature defaults as the SDK workspace. Package rehearsal
Develop and qualify
Use the root test harness to select one package:
python3 tools/test.py run --crate cdk-rsx-crypto-hash --jobs 4
The crypto benchmark owns IC workloads and measurement tools. Recorded choices, cost tables and source research retain their dated source and artifact identities; they do not qualify a newly built artifact.