Skip to content

Commit c519462

Browse files
authored
doc: add missing changes to generateKeyPair(Sync)
Refs: nodejs#26774 Refs: nodejs#26960
1 parent 0073831 commit c519462

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
@@ -3368,6 +3368,9 @@ changes:
33683368
- v12.17.0
33693369
pr-url: https://github.com/nodejs/node/pull/31178
33703370
description: Add support for Diffie-Hellman.
3371+
- version: v12.0.0
3372+
pr-url: https://github.com/nodejs/node/pull/26960
3373+
description: Add support for RSA-PSS key pairs.
33713374
- version: v12.0.0
33723375
pr-url: https://github.com/nodejs/node/pull/26774
33733376
description: Add ability to generate X25519 and X448 key pairs.
@@ -3380,8 +3383,8 @@ changes:
33803383
produce key objects if no encoding was specified.
33813384
-->
33823385

3383-
* `type`: {string} Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`,
3384-
`'x25519'`, `'x448'`, or `'dh'`.
3386+
* `type`: {string} Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`,
3387+
`'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
33853388
* `options`: {Object}
33863389
* `modulusLength`: {number} Key size in bits (RSA, DSA).
33873390
* `publicExponent`: {number} Public exponent (RSA). **Default:** `0x10001`.
@@ -3399,8 +3402,8 @@ changes:
33993402
* `publicKey`: {string | Buffer | KeyObject}
34003403
* `privateKey`: {string | Buffer | KeyObject}
34013404

3402-
Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519,
3403-
Ed448, X25519, X448, and DH are currently supported.
3405+
Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
3406+
Ed25519, Ed448, X25519, X448, and DH are currently supported.
34043407

34053408
If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
34063409
behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,
@@ -3468,6 +3471,12 @@ changes:
34683471
- v12.17.0
34693472
pr-url: https://github.com/nodejs/node/pull/31178
34703473
description: Add support for Diffie-Hellman.
3474+
- version: v12.0.0
3475+
pr-url: https://github.com/nodejs/node/pull/26960
3476+
description: Add support for RSA-PSS key pairs.
3477+
- version: v12.0.0
3478+
pr-url: https://github.com/nodejs/node/pull/26774
3479+
description: Add ability to generate X25519 and X448 key pairs.
34713480
- version: v12.0.0
34723481
pr-url: https://github.com/nodejs/node/pull/26554
34733482
description: Add ability to generate Ed25519 and Ed448 key pairs.
@@ -3477,8 +3486,8 @@ changes:
34773486
produce key objects if no encoding was specified.
34783487
-->
34793488

3480-
* `type`: {string} Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`,
3481-
`'x25519'`, `'x448'`, or `'dh'`.
3489+
* `type`: {string} Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`,
3490+
`'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
34823491
* `options`: {Object}
34833492
* `modulusLength`: {number} Key size in bits (RSA, DSA).
34843493
* `publicExponent`: {number} Public exponent (RSA). **Default:** `0x10001`.
@@ -3495,8 +3504,8 @@ changes:
34953504
* `publicKey`: {string | Buffer | KeyObject}
34963505
* `privateKey`: {string | Buffer | KeyObject}
34973506

3498-
Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519,
3499-
Ed448, X25519, X448, and DH are currently supported.
3507+
Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
3508+
Ed25519, Ed448, X25519, X448, and DH are currently supported.
35003509

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

0 commit comments

Comments
 (0)