Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argon2: Fix docs about minimum value of m_cost #459

Merged
merged 1 commit into from
Sep 5, 2023

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
13 checks passed
@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