@@ -2258,6 +2258,10 @@ be listed in the `transferList` argument.
22582258<!-- YAML
22592259added: v15.0.0
22602260changes:
2261+ - version: REPLACEME
2262+ pr-url: https://github.com/nodejs/node/pull/63188
2263+ description: Passing a non-extractable CryptoKey as `key` is no longer
2264+ supported.
22612265 - version: v26.0.0
22622266 pr-url: https://github.com/nodejs/node/pull/62453
22632267 description: Passing a non-extractable CryptoKey as `key` is deprecated.
@@ -2266,11 +2270,11 @@ changes:
22662270* ` key ` {CryptoKey}
22672271* Returns: {KeyObject}
22682272
2269- Returns the underlying {KeyObject} of a {CryptoKey}. The returned {KeyObject}
2270- does not retain any of the restrictions imposed by the Web Crypto API on the
2271- original {CryptoKey}, such as the allowed key usages, the algorithm or hash
2272- algorithm bindings, and the extractability flag. In particular, the underlying
2273- key material of the returned {KeyObject} can always be exported .
2273+ Returns a {KeyObject} representation of the underlying key material of an
2274+ extractable {CryptoKey}.
2275+ The returned {KeyObject} does not retain any of the restrictions imposed by
2276+ the Web Crypto API on the original {CryptoKey}, such as the allowed key usages,
2277+ the algorithm or hash algorithm bindings .
22742278
22752279``` mjs
22762280const { KeyObject } = await import (' node:crypto' );
@@ -2624,6 +2628,9 @@ console.log(verify.verify(publicKey, signature));
26242628<!-- YAML
26252629added: v0.1.92
26262630changes:
2631+ - version: REPLACEME
2632+ pr-url: https://github.com/nodejs/node/pull/63188
2633+ description: Passing a CryptoKey as `privateKey` is no longer supported.
26272634 - version: v15.0.0
26282635 pr-url: https://github.com/nodejs/node/pull/35093
26292636 description: The privateKey can also be an ArrayBuffer and CryptoKey.
@@ -2645,7 +2652,7 @@ changes:
26452652
26462653<!-- lint disable maximum-line-length remark-lint-->
26472654
2648- * ` privateKey ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
2655+ * ` privateKey ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
26492656 * ` dsaEncoding ` {string}
26502657 * ` padding ` {integer}
26512658 * ` saltLength ` {integer}
@@ -2754,6 +2761,9 @@ This can be called many times with new data as it is streamed.
27542761<!-- YAML
27552762added: v0.1.92
27562763changes:
2764+ - version: REPLACEME
2765+ pr-url: https://github.com/nodejs/node/pull/63188
2766+ description: Passing a CryptoKey as `key` is no longer supported.
27572767 - version: v15.0.0
27582768 pr-url: https://github.com/nodejs/node/pull/35093
27592769 description: The key can also be an ArrayBuffer and CryptoKey.
@@ -2775,7 +2785,7 @@ changes:
27752785
27762786<!-- lint disable maximum-line-length remark-lint-->
27772787
2778- * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
2788+ * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
27792789 * ` dsaEncoding ` {string}
27802790 * ` padding ` {integer}
27812791 * ` saltLength ` {integer}
@@ -3536,6 +3546,9 @@ operations. The specific constants currently defined are described in
35363546<!-- YAML
35373547added: v0.1.94
35383548changes:
3549+ - version: REPLACEME
3550+ pr-url: https://github.com/nodejs/node/pull/63188
3551+ description: Passing a CryptoKey as `key` is no longer supported.
35393552 - version: v26.0.0
35403553 pr-url: https://github.com/nodejs/node/pull/62453
35413554 description: Passing a CryptoKey as `key` is deprecated.
@@ -3572,7 +3585,7 @@ changes:
35723585-->
35733586
35743587* ` algorithm ` {string}
3575- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
3588+ * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
35763589* ` iv ` {string|ArrayBuffer|Buffer|TypedArray|DataView|null}
35773590* ` options ` {Object} [ ` stream.transform ` options] [ ]
35783591* Returns: {Cipheriv}
@@ -3613,6 +3626,9 @@ given IV will be.
36133626<!-- YAML
36143627added: v0.1.94
36153628changes:
3629+ - version: REPLACEME
3630+ pr-url: https://github.com/nodejs/node/pull/63188
3631+ description: Passing a CryptoKey as `key` is no longer supported.
36163632 - version: v26.0.0
36173633 pr-url: https://github.com/nodejs/node/pull/62453
36183634 description: Passing a CryptoKey as `key` is deprecated.
@@ -3645,7 +3661,7 @@ changes:
36453661-->
36463662
36473663* ` algorithm ` {string}
3648- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
3664+ * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
36493665* ` iv ` {string|ArrayBuffer|Buffer|TypedArray|DataView|null}
36503666* ` options ` {Object} [ ` stream.transform ` options] [ ]
36513667* Returns: {Decipheriv}
@@ -3839,6 +3855,9 @@ input.on('readable', () => {
38393855<!-- YAML
38403856added: v0.1.94
38413857changes:
3858+ - version: REPLACEME
3859+ pr-url: https://github.com/nodejs/node/pull/63188
3860+ description: Passing a CryptoKey as `key` is no longer supported.
38423861 - version: v26.0.0
38433862 pr-url: https://github.com/nodejs/node/pull/62453
38443863 description: Passing a CryptoKey as `key` is deprecated.
@@ -3853,7 +3872,7 @@ changes:
38533872-->
38543873
38553874* ` algorithm ` {string}
3856- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
3875+ * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
38573876* ` options ` {Object} [ ` stream.transform ` options] [ ]
38583877 * ` encoding ` {string} The string encoding to use when ` key ` is a string.
38593878* Returns: {Hmac}
@@ -3932,6 +3951,9 @@ input.on('readable', () => {
39323951<!-- YAML
39333952added: v11.6.0
39343953changes:
3954+ - version: REPLACEME
3955+ pr-url: https://github.com/nodejs/node/pull/63188
3956+ description: Passing a CryptoKey as `key` is no longer supported.
39353957 - version: v26.1.0
39363958 pr-url: https://github.com/nodejs/node/pull/62706
39373959 description: Added JWK format support for ML-KEM and SLH-DSA
@@ -3987,6 +4009,9 @@ of the passphrase is limited to 1024 bytes.
39874009<!-- YAML
39884010added: v11.6.0
39894011changes:
4012+ - version: REPLACEME
4013+ pr-url: https://github.com/nodejs/node/pull/63188
4014+ description: Passing a CryptoKey as `key` is no longer supported.
39904015 - version: v26.1.0
39914016 pr-url: https://github.com/nodejs/node/pull/62706
39924017 description: Added JWK format support for ML-KEM and SLH-DSA
@@ -5222,6 +5247,9 @@ An array of supported digest functions can be retrieved using
52225247<!-- YAML
52235248added: v0.11.14
52245249changes:
5250+ - version: REPLACEME
5251+ pr-url: https://github.com/nodejs/node/pull/63188
5252+ description: Passing a CryptoKey as `privateKey` is no longer supported.
52255253 - version:
52265254 - v21.6.2
52275255 - v20.11.1
@@ -5248,7 +5276,7 @@ changes:
52485276
52495277<!-- lint disable maximum-line-length remark-lint-->
52505278
5251- * ` privateKey ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
5279+ * ` privateKey ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
52525280 * ` oaepHash ` {string} The hash function to use for OAEP padding and MGF1.
52535281 ** Default:** ` 'sha1' `
52545282 * ` oaepLabel ` {string|ArrayBuffer|Buffer|TypedArray|DataView} The label to
@@ -5280,6 +5308,9 @@ attempting to use `RSA_PKCS1_PADDING` will fail.
52805308<!-- YAML
52815309added: v1.1.0
52825310changes:
5311+ - version: REPLACEME
5312+ pr-url: https://github.com/nodejs/node/pull/63188
5313+ description: Passing a CryptoKey as `privateKey` is no longer supported.
52835314 - version: v15.0.0
52845315 pr-url: https://github.com/nodejs/node/pull/35093
52855316 description: Added string, ArrayBuffer, and CryptoKey as allowable key
@@ -5293,8 +5324,8 @@ changes:
52935324
52945325<!-- lint disable maximum-line-length remark-lint-->
52955326
5296- * ` privateKey ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
5297- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
5327+ * ` privateKey ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
5328+ * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
52985329 A PEM encoded private key.
52995330 * ` passphrase ` {string|ArrayBuffer|Buffer|TypedArray|DataView} An optional
53005331 passphrase for the private key.
@@ -5321,6 +5352,9 @@ object, the `padding` property can be passed. Otherwise, this function uses
53215352<!-- YAML
53225353added: v1.1.0
53235354changes:
5355+ - version: REPLACEME
5356+ pr-url: https://github.com/nodejs/node/pull/63188
5357+ description: Passing a CryptoKey as `key` is no longer supported.
53245358 - version: v15.0.0
53255359 pr-url: https://github.com/nodejs/node/pull/35093
53265360 description: Added string, ArrayBuffer, and CryptoKey as allowable key
@@ -5334,7 +5368,7 @@ changes:
53345368
53355369<!-- lint disable maximum-line-length remark-lint-->
53365370
5337- * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
5371+ * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
53385372 * ` passphrase ` {string|ArrayBuffer|Buffer|TypedArray|DataView} An optional
53395373 passphrase for the private key.
53405374 * ` padding ` {crypto.constants} An optional padding value defined in
@@ -5363,6 +5397,9 @@ be passed instead of a public key.
53635397<!-- YAML
53645398added: v0.11.14
53655399changes:
5400+ - version: REPLACEME
5401+ pr-url: https://github.com/nodejs/node/pull/63188
5402+ description: Passing a CryptoKey as `key` is no longer supported.
53665403 - version: v15.0.0
53675404 pr-url: https://github.com/nodejs/node/pull/35093
53685405 description: Added string, ArrayBuffer, and CryptoKey as allowable key
@@ -5382,9 +5419,9 @@ changes:
53825419
53835420<!-- lint disable maximum-line-length remark-lint-->
53845421
5385- * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
5386- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
5387- A PEM encoded public or private key, {KeyObject}, or {CryptoKey }.
5422+ * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
5423+ * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
5424+ A PEM encoded public or private key, or {KeyObject }.
53885425 * ` oaepHash ` {string} The hash function to use for OAEP padding and MGF1.
53895426 ** Default:** ` 'sha1' `
53905427 * ` oaepLabel ` {string|ArrayBuffer|Buffer|TypedArray|DataView} The label to
@@ -6104,6 +6141,9 @@ Throws an error if FIPS mode is not available.
61046141<!-- YAML
61056142added: v12.0.0
61066143changes:
6144+ - version: REPLACEME
6145+ pr-url: https://github.com/nodejs/node/pull/63188
6146+ description: Passing a CryptoKey as `key` is no longer supported.
61076147 - version: v26.0.0
61086148 pr-url: https://github.com/nodejs/node/pull/62474
61096149 description: Add support for Ed25519 context parameter.
@@ -6135,7 +6175,7 @@ changes:
61356175
61366176* ` algorithm ` {string | null | undefined}
61376177* ` data ` {ArrayBuffer|Buffer|TypedArray|DataView}
6138- * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
6178+ * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
61396179* ` callback ` {Function}
61406180 * ` err ` {Error}
61416181 * ` signature ` {Buffer}
@@ -6233,6 +6273,9 @@ not introduce timing vulnerabilities.
62336273<!-- YAML
62346274added: v12.0.0
62356275changes:
6276+ - version: REPLACEME
6277+ pr-url: https://github.com/nodejs/node/pull/63188
6278+ description: Passing a CryptoKey as `key` is no longer supported.
62366279 - version: v26.0.0
62376280 pr-url: https://github.com/nodejs/node/pull/62474
62386281 description: Add support for Ed25519 context parameter.
@@ -6267,7 +6310,7 @@ changes:
62676310
62686311* ` algorithm ` {string|null|undefined}
62696312* ` data ` {ArrayBuffer| Buffer|TypedArray|DataView}
6270- * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey }
6313+ * ` key ` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject}
62716314* ` signature ` {ArrayBuffer|Buffer|TypedArray|DataView}
62726315* ` callback ` {Function}
62736316 * ` err ` {Error}
0 commit comments