mobile(iOS/Android): reconcile the tiered-KDF ladder with KEY-13 floors (Argon2idLow 19 MiB is below every floor) #198
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#198
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding (from #15 groundwork)
KEY-13 (SRS, audit H-2) sets Argon2id floors: native m ≥ 64 MiB, t ≥ 3, p = 1 (WASM tier: m ≥ 32 MiB). The shipped tiered-KDF ladder in
failsulit-crypto/src/symmetric.rs+ iOSCrypto/TieredKdf.swift/KdfProfile.swiftincludes:argon2id-standard: 64 MiB, t=3, p=4 — floor-conformingargon2id-low: 19 MiB, t=4, p=4 — below EVERY KEY-13 floor (native AND WASM)bcrypt-hkdf: bcrypt cost 13 + HKDF — outside the Argon2id floor table entirely (KEY-13 does not define a bcrypt floor)The rust side now exposes
KdfTier+Argon2Params::meets_key13_floor()and a documentation test assertingArgon2idLowfails both tiers (PR #197). No shipped wrap path consumesArgon2idLow(dormant tier — desktop uses its own floor-params unlock layer), so this is a pre-adoption contract decision, not a migration.Decision needed (product/security)
Argon2idLowto the WASM floor (32 MiB, t=3) or the native floor (64 MiB) — kills the tier on true low-RAM phones, orArgon2idLowand let low-RAM devices fall tobcrypt-hkdf(which then needs its own published floor/cost rationale in the threat model), orWhichever is chosen: iOS
TieredKdf.swift/KdfProfile.swift+ rustKdfProfilemust agree, the golden-vector suite gains a vector for the chosen profile(s), and Android (which currently has NO tiered-KDF implementation) inherits the decision before its passphrase-unlock surface lands (M3).Related: #15 (closed by PR #197), SRS KEY-13, threat model offline-attack math (OPS-02 also cites it).