From 8a82e8e1d7915f3c96a9d36edfb0478a7887809f Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 5 Nov 2025 10:45:45 +0100 Subject: [PATCH] doc,crypto: link keygen to supported types --- doc/api/crypto.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index c17899bb4f608d..f3a68e5e704357 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -4009,8 +4009,8 @@ changes: * `publicKey` {string | Buffer | KeyObject} * `privateKey` {string | Buffer | KeyObject} -Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, -Ed25519, Ed448, X25519, X448, and DH are currently supported. +Generates a new asymmetric key pair of the given `type`. See the +supported [asymmetric key types][]. If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function behaves as if [`keyObject.export()`][] had been called on its result. Otherwise, @@ -4131,8 +4131,8 @@ changes: * `publicKey` {string | Buffer | KeyObject} * `privateKey` {string | Buffer | KeyObject} -Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, -Ed25519, Ed448, X25519, X448, DH, and ML-DSA[^openssl35] are currently supported. +Generates a new asymmetric key pair of the given `type`. See the +supported [asymmetric key types][]. If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,