From 5dc2c640d34f9ef55bff452748b007ca0f187157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 6 Dec 2023 00:15:14 +0100 Subject: [PATCH] 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. --- doc/api/webcrypto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/webcrypto.md b/doc/api/webcrypto.md index 0c5fa8b413b992..07677b8f180de9 100644 --- a/doc/api/webcrypto.md +++ b/doc/api/webcrypto.md @@ -330,7 +330,7 @@ async function pbkdf2Key(pass, salt, iterations = 1000, length = 256) { iterations, }, keyMaterial, { name: 'AES-GCM', - length: 256, + length, }, true, ['encrypt', 'decrypt']); return key; }