Closed sorairolake closed 1 year ago
m_cost
MIN_OUTPUT_LEN
p_cost
These are defined in RFC 9106, and MIN_M_COST and MAX_P_COST are also like that.
MIN_M_COST
MAX_P_COST
See also: #451, #452
Params::new verifies that m_cost is greater than or equal to p_cost*8.
Params::new
https://github.com/RustCrypto/password-hashes/blob/144b2e41a686524fb8f971454cf65a7fbcdf7bed/argon2/src/params.rs#L119-L121
So, it might be better to explain that the minimum value of m_cost is p_cost*8 instead of 8.
m_cost
is 8 ( 8*MIN_OUTPUT_LEN
), not 1.p_cost
is (2^24)-1, not 255.These are defined in RFC 9106, and
MIN_M_COST
andMAX_P_COST
are also like that.See also: #451, #452