Skip to content

Commit 6155499

Browse files
tniessenpanva
authored andcommitted
doc: add missing changes to generateKeyPair(Sync)
Refs: #26774 Refs: #26960 PR-URL: #39963 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 5b2ab7a commit 6155499

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

doc/api/crypto.md

+17-8
Original file line numberDiff line numberDiff line change
@@ -3380,6 +3380,9 @@ changes:
33803380
- v12.17.0
33813381
pr-url: https://github.com/nodejs/node/pull/31178
33823382
description: Add support for Diffie-Hellman.
3383+
- version: v12.0.0
3384+
pr-url: https://github.com/nodejs/node/pull/26960
3385+
description: Add support for RSA-PSS key pairs.
33833386
- version: v12.0.0
33843387
pr-url: https://github.com/nodejs/node/pull/26774
33853388
description: Add ability to generate X25519 and X448 key pairs.
@@ -3392,8 +3395,8 @@ changes:
33923395
produce key objects if no encoding was specified.
33933396
-->
33943397

3395-
* `type`: {string} Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`,
3396-
`'x25519'`, `'x448'`, or `'dh'`.
3398+
* `type`: {string} Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`,
3399+
`'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
33973400
* `options`: {Object}
33983401
* `modulusLength`: {number} Key size in bits (RSA, DSA).
33993402
* `publicExponent`: {number} Public exponent (RSA). **Default:** `0x10001`.
@@ -3411,8 +3414,8 @@ changes:
34113414
* `publicKey`: {string | Buffer | KeyObject}
34123415
* `privateKey`: {string | Buffer | KeyObject}
34133416

3414-
Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519,
3415-
Ed448, X25519, X448, and DH are currently supported.
3417+
Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
3418+
Ed25519, Ed448, X25519, X448, and DH are currently supported.
34163419

34173420
If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
34183421
behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,
@@ -3480,6 +3483,12 @@ changes:
34803483
- v12.17.0
34813484
pr-url: https://github.com/nodejs/node/pull/31178
34823485
description: Add support for Diffie-Hellman.
3486+
- version: v12.0.0
3487+
pr-url: https://github.com/nodejs/node/pull/26960
3488+
description: Add support for RSA-PSS key pairs.
3489+
- version: v12.0.0
3490+
pr-url: https://github.com/nodejs/node/pull/26774
3491+
description: Add ability to generate X25519 and X448 key pairs.
34833492
- version: v12.0.0
34843493
pr-url: https://github.com/nodejs/node/pull/26554
34853494
description: Add ability to generate Ed25519 and Ed448 key pairs.
@@ -3489,8 +3498,8 @@ changes:
34893498
produce key objects if no encoding was specified.
34903499
-->
34913500

3492-
* `type`: {string} Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`,
3493-
`'x25519'`, `'x448'`, or `'dh'`.
3501+
* `type`: {string} Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`,
3502+
`'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
34943503
* `options`: {Object}
34953504
* `modulusLength`: {number} Key size in bits (RSA, DSA).
34963505
* `publicExponent`: {number} Public exponent (RSA). **Default:** `0x10001`.
@@ -3507,8 +3516,8 @@ changes:
35073516
* `publicKey`: {string | Buffer | KeyObject}
35083517
* `privateKey`: {string | Buffer | KeyObject}
35093518

3510-
Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519,
3511-
Ed448, X25519, X448, and DH are currently supported.
3519+
Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
3520+
Ed25519, Ed448, X25519, X448, and DH are currently supported.
35123521

35133522
If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
35143523
behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,

0 commit comments

Comments
 (0)