Skip to content

Commit 203ca49

Browse files
tniessendanielleadams
authored andcommitted
doc: add missing documentation for paramEncoding
This option has existed ever since generateKeyPair was added in 2019 or so, but I apparently forgot to document it. PR-URL: #45523 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a142162 commit 203ca49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/crypto.md

+4
Original file line numberDiff line numberDiff line change
@@ -3723,6 +3723,8 @@ changes:
37233723
* `generator`: {number} Custom generator (DH). **Default:** `2`.
37243724
* `groupName`: {string} Diffie-Hellman group name (DH). See
37253725
[`crypto.getDiffieHellman()`][].
3726+
* `paramEncoding`: {string} Must be `'named'` or `'explicit'` (EC).
3727+
**Default:** `'named'`.
37263728
* `publicKeyEncoding`: {Object} See [`keyObject.export()`][].
37273729
* `privateKeyEncoding`: {Object} See [`keyObject.export()`][].
37283730
* `callback`: {Function}
@@ -3835,6 +3837,8 @@ changes:
38353837
* `generator`: {number} Custom generator (DH). **Default:** `2`.
38363838
* `groupName`: {string} Diffie-Hellman group name (DH). See
38373839
[`crypto.getDiffieHellman()`][].
3840+
* `paramEncoding`: {string} Must be `'named'` or `'explicit'` (EC).
3841+
**Default:** `'named'`.
38383842
* `publicKeyEncoding`: {Object} See [`keyObject.export()`][].
38393843
* `privateKeyEncoding`: {Object} See [`keyObject.export()`][].
38403844
* Returns: {Object}

0 commit comments

Comments
 (0)