Commit 092a118
committed
fix(argon2): correct m_cost from absolute KiB to exponent
In the argon2 Ruby gem, m_cost is an exponent: memory = 2^m_cost KiB
(valid range 3..31). Passing 65_536 (intended as KiB) caused
ArgonHashFail on every login attempt, breaking authentication in prod.
- m_cost: 16 => 2^16 KiB = 64 MiB (OWASP preferred, unchanged intent)
- m_cost: 3 => 2^3 KiB = 8 KiB (test env, replaces wrong 16 KiB)
- Fix benchmark script output and configs to use exponent values
- Add clarifying comment in ARGON2_PARAMS and PRD1 parent c13ee68 commit 092a118
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments