diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 4cacde0d8e9083..9ba401f15381ff 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1129,6 +1129,9 @@ passing keys as strings or `Buffer`s due to improved security features. * {string} -For asymmetric keys, this property represents the type of the embedded key -(`'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'` or `'x448'`). +For asymmetric keys, this property represents the type of the key. Supported key +types are: + +* `'rsa'` (OID 1.2.840.113549.1.1.1) +* `'rsa-pss'` (OID 1.2.840.113549.1.1.10) +* `'dsa'` (OID 1.2.840.10040.4.1) +* `'ec'` (OID 1.2.840.10045.2.1) +* `'x25519'` (OID 1.3.101.110) +* `'x448'` (OID 1.3.101.111) +* `'ed25519'` (OID 1.3.101.112) +* `'ed448'` (OID 1.3.101.113) + This property is `undefined` for unrecognized `KeyObject` types and symmetric keys. @@ -1271,6 +1284,9 @@ console.log(verify.verify(publicKey, signature));