Skip to content

Argon2: Fix docs about minimum value of m_cost#459

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
sorairolake:fix-m-cost-doc
Sep 5, 2023
Merged

Argon2: Fix docs about minimum value of m_cost#459
tarcieri merged 1 commit intoRustCrypto:masterfrom
sorairolake:fix-m-cost-doc

Conversation

@sorairolake
Copy link
Contributor

@sorairolake sorairolake commented Sep 5, 2023

According to RFC 9106:

Memory size m MUST be an integer number of kibibytes from 8*p to
2^(32)-1. The actual number of blocks is m', which is m rounded
down to the nearest multiple of 4*p.

8 is the minimum value of m_cost when p_cost is 1, and the minimum value of m_cost changes depending on the value of p_cost, so I fix the explanation about the minimum value of m_cost.

See also: #458 (comment)

@tarcieri tarcieri merged commit 7d22c17 into RustCrypto:master Sep 5, 2023
@sorairolake sorairolake deleted the fix-m-cost-doc branch September 5, 2023 14:10
@tarcieri tarcieri mentioned this pull request Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants