Skip to content

Commit 560c182

Browse files
willclarktechtniessen
authored andcommitted
doc: correct pbkdf2 salt length recommendation
According to the linked document: "The length of the randomly-generated portion of the salt shall be at least 128 bits." [NIST SP 800-132] PR-URL: #17524 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent a893e79 commit 560c182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ higher the number of iterations, the more secure the derived key will be,
16221622
but will take a longer amount of time to complete.
16231623

16241624
The `salt` should also be as unique as possible. It is recommended that the
1625-
salts are random and their lengths are greater than 16 bytes. See
1625+
salts are random and their lengths are at least 16 bytes. See
16261626
[NIST SP 800-132][] for details.
16271627

16281628
Example:
@@ -1686,7 +1686,7 @@ higher the number of iterations, the more secure the derived key will be,
16861686
but will take a longer amount of time to complete.
16871687

16881688
The `salt` should also be as unique as possible. It is recommended that the
1689-
salts are random and their lengths are greater than 16 bytes. See
1689+
salts are random and their lengths are at least 16 bytes. See
16901690
[NIST SP 800-132][] for details.
16911691

16921692
Example:

0 commit comments

Comments
 (0)