diff --git a/doc/api/crypto.md b/doc/api/crypto.md index f925d4318d3..f141f9235df 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2136,6 +2136,24 @@ added: v11.6.0 For secret keys, this property represents the size of the key in bytes. This property is `undefined` for asymmetric keys. +### `keyObject.toCryptoKey(algorithm, extractable, keyUsages)` + + + + + +* `algorithm`: {AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams} + + + +* `extractable`: {boolean} +* `keyUsages`: {string\[]} See [Key usages][]. +* Returns: {CryptoKey} + +Converts a `KeyObject` instance to a `CryptoKey`. + ### `keyObject.type`