Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 169b5ea

Browse filesBrowse files
tniessenaduh95
authored andcommitted
doc: fix Argon2 parameter bounds
The bounds are supposed to be inclusive, not exclusive. PR-URL: #62868 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent 5c4798d commit 169b5ea
Copy full SHA for 169b5ea

1 file changed

+14-14Lines changed: 14 additions & 14 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+14-14Lines changed: 14 additions & 14 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3306,14 +3306,14 @@ added: v24.7.0
33063306
* `nonce` {string|ArrayBuffer|Buffer|TypedArray|DataView} REQUIRED, must be at
33073307
least 8 bytes long. This is the salt for password hashing applications of Argon2.
33083308
* `parallelism` {number} REQUIRED, degree of parallelism determines how many computational chains (lanes)
3309-
can be run. Must be greater than 1 and less than `2**24-1`.
3310-
* `tagLength` {number} REQUIRED, the length of the key to generate. Must be greater than 4 and
3311-
less than `2**32-1`.
3312-
* `memory` {number} REQUIRED, memory cost in 1KiB blocks. Must be greater than
3313-
`8 * parallelism` and less than `2**32-1`. The actual number of blocks is rounded
3309+
can be run. Must be at least `1` and at most `2**24-1`.
3310+
* `tagLength` {number} REQUIRED, the length of the key to generate. Must be at least `4` and
3311+
at most `2**32-1`.
3312+
* `memory` {number} REQUIRED, memory cost in 1KiB blocks. Must be at least
3313+
`8 * parallelism` and at most `2**32-1`. The actual number of blocks is rounded
33143314
down to the nearest multiple of `4 * parallelism`.
3315-
* `passes` {number} REQUIRED, number of passes (iterations). Must be greater than 1 and less
3316-
than `2**32-1`.
3315+
* `passes` {number} REQUIRED, number of passes (iterations). Must be at least `1` and at most
3316+
`2**32-1`.
33173317
* `secret` {string|ArrayBuffer|Buffer|TypedArray|DataView|undefined} OPTIONAL, Random additional input,
33183318
similar to the salt, that should **NOT** be stored with the derived key. This is known as pepper in
33193319
password hashing applications. If used, must have a length not greater than `2**32-1` bytes.
@@ -3392,14 +3392,14 @@ added: v24.7.0
33923392
* `nonce` {string|ArrayBuffer|Buffer|TypedArray|DataView} REQUIRED, must be at
33933393
least 8 bytes long. This is the salt for password hashing applications of Argon2.
33943394
* `parallelism` {number} REQUIRED, degree of parallelism determines how many computational chains (lanes)
3395-
can be run. Must be greater than 1 and less than `2**24-1`.
3396-
* `tagLength` {number} REQUIRED, the length of the key to generate. Must be greater than 4 and
3397-
less than `2**32-1`.
3398-
* `memory` {number} REQUIRED, memory cost in 1KiB blocks. Must be greater than
3399-
`8 * parallelism` and less than `2**32-1`. The actual number of blocks is rounded
3395+
can be run. Must be at least 1 and at most `2**24-1`.
3396+
* `tagLength` {number} REQUIRED, the length of the key to generate. Must be at least `4` and
3397+
at most `2**32-1`.
3398+
* `memory` {number} REQUIRED, memory cost in 1KiB blocks. Must be at least
3399+
`8 * parallelism` and at most `2**32-1`. The actual number of blocks is rounded
34003400
down to the nearest multiple of `4 * parallelism`.
3401-
* `passes` {number} REQUIRED, number of passes (iterations). Must be greater than 1 and less
3402-
than `2**32-1`.
3401+
* `passes` {number} REQUIRED, number of passes (iterations). Must be at least `1` and at most
3402+
`2**32-1`.
34033403
* `secret` {string|ArrayBuffer|Buffer|TypedArray|DataView|undefined} OPTIONAL, Random additional input,
34043404
similar to the salt, that should **NOT** be stored with the derived key. This is known as pepper in
34053405
password hashing applications. If used, must have a length not greater than `2**32-1` bytes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.