Argon2's memory_cost is in kilobytes, not bytes

https://www.php.net/password-hash says "kibibytes", spec https://www.password-hashing.net/argon2-specs.pdf says "kilobytes", went with "kibibytes" to match the other docs page.

Closes GH-1596.
This commit is contained in:
Michal Špaček 2022-05-25 19:39:34 +02:00 committed by GitHub
parent 0780c13160
commit 6be77ad626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@
<itemizedlist>
<listitem>
<para>
<literal>memory_cost</literal> (<type>int</type>) - Maximum memory (in bytes) that may
<literal>memory_cost</literal> (<type>int</type>) - Maximum memory (in kibibytes) that may
be used to compute the Argon2 hash. Defaults to <constant>PASSWORD_ARGON2_DEFAULT_MEMORY_COST</constant>.
</para>
</listitem>