Expand description
The single source of truth, in code, for Capsule’s cryptographic primitive set.
Mirrors the inventory in Cryptography — Primitives. Every on-disk and on-wire
structure that depends on a primitive carries a SuiteId (crypto_suite_id), so two
structures encrypted under different suite versions can coexist without a flag day.
Retiring a primitive does not edit a row — it adds a new SuiteId variant.
Modules§
- info
- Versioned HKDF
infolabels. Including a version string lets the KDF be rotated later without a flag day; the SSoT for each label is the doc that derives that key.
Structs§
- Argon2
Params - Argon2id cost parameters: memory in KiB, iteration count
t, parallelismp.
Enums§
- Device
Tier - Device hardware tier, selecting Argon2id cost parameters at wrap time. The chosen parameters are recorded in the wrapped blob, so unwrap works on any tier.
- SuiteId
- Identifies a complete bundle of cryptographic primitives.
Constants§
- CRYPTO_
SUITE_ ID crypto_suite_idof the current primitive bundle (theSuiteId::V1inventory).- PROTOCOL_
VERSION - The date-based wire
protocol_versionthis build writes. Pinned per album at creation.