Skip to content

Commit 48b6781

Browse files
panvaruyadorno
authored andcommitted
doc: fix crypto.generateKeySync aes allowed length list
PR-URL: #36928 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 120db2c commit 48b6781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ added: v15.0.0
25092509
* If `type` is `'hmac'`, the minimum is 1, and the maximum length is
25102510
2<sup>31</sup>-1. If the value is not a multiple of 8, the generated
25112511
key will be truncated to `Math.floor(length / 8)`.
2512-
* If `type` is `'aes'`, the length must be one of `128` or `256`.
2512+
* If `type` is `'aes'`, the length must be one of `128`, `192`, or `256`.
25132513
* `callback`: {Function}
25142514
* `err`: {Error}
25152515
* `key`: {KeyObject}
@@ -2538,7 +2538,7 @@ added: v15.0.0
25382538
* If `type` is `'hmac'`, the minimum is 1, and the maximum length is
25392539
2<sup>31</sup>-1. If the value is not a multiple of 8, the generated
25402540
key will be truncated to `Math.floor(length / 8)`.
2541-
* If `type` is `'aes'`, the length must be one of `128` or `256`.
2541+
* If `type` is `'aes'`, the length must be one of `128`, `192`, or `256`.
25422542
* Returns: {KeyObject}
25432543

25442544
Synchronously generates a new random secret key of the given `length`. The

0 commit comments

Comments
 (0)