pub const WRAP_PARAMS: Argon2Params;Expand description
The production Argon2id cost for the backup wrap key: the normal device tier.
The parameters an export actually used are recorded in the artifact’s VERSION entry, so a
restore reproduces the wrap key from the artifact and never from a constant. That is why
this is a default and not a rule: export and export_with_salt — the two entry
points a production build has — apply it and take no cost argument, while the *_with_params
pair takes the cost from the caller and is compiled only under cfg(test) or the non-default
test-support feature. BackupArtifact::open reads the cost back off the artifact either
way.
It is one constant for every build. It used to be forked on #[cfg(test)], which meant
capsule-core’s own tests were the only code in the workspace that never exercised the
production cost, while every downstream test paid it in full with no way to opt out.