mobile(iOS/Android): reconcile the tiered-KDF ladder with KEY-13 floors (Argon2idLow 19 MiB is below every floor) #198

Open
opened 2026-11-13 13:48:27 +01:00 by amiryahaya · 0 comments
Owner

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 + iOS Crypto/TieredKdf.swift / KdfProfile.swift includes:

  • argon2id-standard: 64 MiB, t=3, p=4 — floor-conforming
  • argon2id-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 asserting Argon2idLow fails both tiers (PR #197). No shipped wrap path consumes Argon2idLow (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)

  1. Raise Argon2idLow to the WASM floor (32 MiB, t=3) or the native floor (64 MiB) — kills the tier on true low-RAM phones, or
  2. Drop Argon2idLow and let low-RAM devices fall to bcrypt-hkdf (which then needs its own published floor/cost rationale in the threat model), or
  3. Keep 19 MiB and amend KEY-13 with a documented low-RAM exception + offline-crack-cost estimate (the SRS explicitly wants crack-cost math published).

Whichever is chosen: iOS TieredKdf.swift/KdfProfile.swift + rust KdfProfile must 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).

## 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` + iOS `Crypto/TieredKdf.swift` / `KdfProfile.swift` includes: - `argon2id-standard`: 64 MiB, t=3, p=4 — **floor-conforming** - `argon2id-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 asserting `Argon2idLow` fails both tiers (PR #197). No shipped wrap path consumes `Argon2idLow` (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) 1. **Raise `Argon2idLow`** to the WASM floor (32 MiB, t=3) or the native floor (64 MiB) — kills the tier on true low-RAM phones, or 2. **Drop `Argon2idLow`** and let low-RAM devices fall to `bcrypt-hkdf` (which then needs its own published floor/cost rationale in the threat model), or 3. **Keep 19 MiB** and amend KEY-13 with a documented low-RAM exception + offline-crack-cost estimate (the SRS explicitly wants crack-cost math published). Whichever is chosen: iOS `TieredKdf.swift`/`KdfProfile.swift` + rust `KdfProfile` must 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).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#198
No description provided.