Skip to content

Commit

Permalink
doc: fix crypto.generateKeySync aes allowed length list
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jan 14, 2021
1 parent 1772ae7 commit 4271d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@ added: v15.0.0
* If `type` is `'hmac'`, the minimum is 1, and the maximum length is
2<sup>31</sup>-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}
Expand Down Expand Up @@ -2538,7 +2538,7 @@ added: v15.0.0
* If `type` is `'hmac'`, the minimum is 1, and the maximum length is
2<sup>31</sup>-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
Expand Down

0 comments on commit 4271d7c

Please sign in to comment.