Skip to content

Commit 539bee4

Browse files
tniessenRafaelGSS
authored andcommitted
doc: use length argument in pbkdf2Key
The optional `length` argument is supposed to determine the length of the AES-GCM key, so it may be 128, 192, or 256. PR-URL: #51066 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent c3c8237 commit 539bee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/webcrypto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async function pbkdf2Key(pass, salt, iterations = 1000, length = 256) {
330330
iterations,
331331
}, keyMaterial, {
332332
name: 'AES-GCM',
333-
length: 256,
333+
length,
334334
}, true, ['encrypt', 'decrypt']);
335335
return key;
336336
}

0 commit comments

Comments
 (0)