Skip to content

Commit 1cd27b6

Browse files
tniessenrichardlau
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 <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bac982b commit 1cd27b6

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
@@ -328,7 +328,7 @@ async function pbkdf2Key(pass, salt, iterations = 1000, length = 256) {
328328
iterations,
329329
}, keyMaterial, {
330330
name: 'AES-GCM',
331-
length: 256,
331+
length,
332332
}, true, ['encrypt', 'decrypt']);
333333
return key;
334334
}

0 commit comments

Comments
 (0)