From 48b67811514f7291d781a4c416018eaf1bf65cfc Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 14 Jan 2021 15:01:25 +0100 Subject: [PATCH] doc: fix crypto.generateKeySync aes allowed length list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/36928 Reviewed-By: James M Snell Reviewed-By: Tobias Nießen --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index b56420bce9a1c7..e43f3fa5dafc43 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2509,7 +2509,7 @@ added: v15.0.0 * If `type` is `'hmac'`, the minimum is 1, and the maximum length is 231-1. If the value is not a multiple of 8, the generated key will be truncated to `Math.floor(length / 8)`. - * If `type` is `'aes'`, the length must be one of `128` or `256`. + * If `type` is `'aes'`, the length must be one of `128`, `192`, or `256`. * `callback`: {Function} * `err`: {Error} * `key`: {KeyObject} @@ -2538,7 +2538,7 @@ added: v15.0.0 * If `type` is `'hmac'`, the minimum is 1, and the maximum length is 231-1. If the value is not a multiple of 8, the generated key will be truncated to `Math.floor(length / 8)`. - * If `type` is `'aes'`, the length must be one of `128` or `256`. + * If `type` is `'aes'`, the length must be one of `128`, `192`, or `256`. * Returns: {KeyObject} Synchronously generates a new random secret key of the given `length`. The