From 8cdb7cae98468efee222727ad9a4096e415f3ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 8 Dec 2023 00:23:41 +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. PR-URL: https://github.com/nodejs/node/pull/51066 Reviewed-By: Marco Ippolito Reviewed-By: Filip Skokan Reviewed-By: Luigi Pinca --- 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; }