◐ Shell
clean mode source ↗

doc,crypto: link keygen to supported types · nodejs/node@dbf204c

Original file line numberDiff line numberDiff line change

@@ -4009,8 +4009,8 @@ changes:

40094009

* `publicKey` {string | Buffer | KeyObject}

40104010

* `privateKey` {string | Buffer | KeyObject}

40114011
4012-

Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,

4013-

Ed25519, Ed448, X25519, X448, and DH are currently supported.

4012+

Generates a new asymmetric key pair of the given `type`. See the

4013+

supported [asymmetric key types][].

40144014
40154015

If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function

40164016

behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,

@@ -4131,8 +4131,8 @@ changes:

41314131

* `publicKey` {string | Buffer | KeyObject}

41324132

* `privateKey` {string | Buffer | KeyObject}

41334133
4134-

Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,

4135-

Ed25519, Ed448, X25519, X448, DH, and ML-DSA[^openssl35] are currently supported.

4134+

Generates a new asymmetric key pair of the given `type`. See the

4135+

supported [asymmetric key types][].

41364136
41374137

If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function

41384138

behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,