@@ -2256,6 +2256,10 @@ be listed in the `transferList` argument. |
2256 | 2256 | <!-- YAML |
2257 | 2257 | added: v15.0.0 |
2258 | 2258 | changes: |
| 2259 | + - version: REPLACEME |
| 2260 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 2261 | + description: Passing a non-extractable CryptoKey as `key` is no longer |
| 2262 | + supported. |
2259 | 2263 | - version: v26.0.0 |
2260 | 2264 | pr-url: https://github.com/nodejs/node/pull/62453 |
2261 | 2265 | description: Passing a non-extractable CryptoKey as `key` is deprecated. |
@@ -2264,11 +2268,11 @@ changes: |
2264 | 2268 | * `key` {CryptoKey} |
2265 | 2269 | * Returns: {KeyObject} |
2266 | 2270 |
|
2267 | | -Returns the underlying {KeyObject} of a {CryptoKey}. The returned {KeyObject} |
2268 | | -does not retain any of the restrictions imposed by the Web Crypto API on the |
2269 | | -original {CryptoKey}, such as the allowed key usages, the algorithm or hash |
2270 | | -algorithm bindings, and the extractability flag. In particular, the underlying |
2271 | | -key material of the returned {KeyObject} can always be exported. |
| 2271 | +Returns a {KeyObject} representation of the underlying key material of an |
| 2272 | +extractable {CryptoKey}. |
| 2273 | +The returned {KeyObject} does not retain any of the restrictions imposed by |
| 2274 | +the Web Crypto API on the original {CryptoKey}, such as the allowed key usages, |
| 2275 | +the algorithm or hash algorithm bindings. |
2272 | 2276 |
|
2273 | 2277 | ```mjs |
2274 | 2278 | const { KeyObject } = await import('node:crypto'); |
@@ -2622,6 +2626,9 @@ console.log(verify.verify(publicKey, signature)); |
2622 | 2626 | <!-- YAML |
2623 | 2627 | added: v0.1.92 |
2624 | 2628 | changes: |
| 2629 | + - version: REPLACEME |
| 2630 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 2631 | + description: Passing a CryptoKey as `privateKey` is no longer supported. |
2625 | 2632 | - version: v15.0.0 |
2626 | 2633 | pr-url: https://github.com/nodejs/node/pull/35093 |
2627 | 2634 | description: The privateKey can also be an ArrayBuffer and CryptoKey. |
@@ -2643,7 +2650,7 @@ changes: |
2643 | 2650 |
|
2644 | 2651 | <!--lint disable maximum-line-length remark-lint--> |
2645 | 2652 |
|
2646 | | -* `privateKey` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 2653 | +* `privateKey` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
2647 | 2654 | * `dsaEncoding` {string} |
2648 | 2655 | * `padding` {integer} |
2649 | 2656 | * `saltLength` {integer} |
@@ -2752,6 +2759,9 @@ This can be called many times with new data as it is streamed. |
2752 | 2759 | <!-- YAML |
2753 | 2760 | added: v0.1.92 |
2754 | 2761 | changes: |
| 2762 | + - version: REPLACEME |
| 2763 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 2764 | + description: Passing a CryptoKey as `key` is no longer supported. |
2755 | 2765 | - version: v15.0.0 |
2756 | 2766 | pr-url: https://github.com/nodejs/node/pull/35093 |
2757 | 2767 | description: The key can also be an ArrayBuffer and CryptoKey. |
@@ -2773,7 +2783,7 @@ changes: |
2773 | 2783 |
|
2774 | 2784 | <!--lint disable maximum-line-length remark-lint--> |
2775 | 2785 |
|
2776 | | -* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 2786 | +* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
2777 | 2787 | * `dsaEncoding` {string} |
2778 | 2788 | * `padding` {integer} |
2779 | 2789 | * `saltLength` {integer} |
@@ -3530,6 +3540,9 @@ operations. The specific constants currently defined are described in |
3530 | 3540 | <!-- YAML |
3531 | 3541 | added: v0.1.94 |
3532 | 3542 | changes: |
| 3543 | + - version: REPLACEME |
| 3544 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 3545 | + description: Passing a CryptoKey as `key` is no longer supported. |
3533 | 3546 | - version: v26.0.0 |
3534 | 3547 | pr-url: https://github.com/nodejs/node/pull/62453 |
3535 | 3548 | description: Passing a CryptoKey as `key` is deprecated. |
@@ -3566,7 +3579,7 @@ changes: |
3566 | 3579 | --> |
3567 | 3580 |
|
3568 | 3581 | * `algorithm` {string} |
3569 | | -* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 3582 | +* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
3570 | 3583 | * `iv` {string|ArrayBuffer|Buffer|TypedArray|DataView|null} |
3571 | 3584 | * `options` {Object} [`stream.transform` options][] |
3572 | 3585 | * Returns: {Cipheriv} |
@@ -3607,6 +3620,9 @@ given IV will be. |
3607 | 3620 | <!-- YAML |
3608 | 3621 | added: v0.1.94 |
3609 | 3622 | changes: |
| 3623 | + - version: REPLACEME |
| 3624 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 3625 | + description: Passing a CryptoKey as `key` is no longer supported. |
3610 | 3626 | - version: v26.0.0 |
3611 | 3627 | pr-url: https://github.com/nodejs/node/pull/62453 |
3612 | 3628 | description: Passing a CryptoKey as `key` is deprecated. |
@@ -3639,7 +3655,7 @@ changes: |
3639 | 3655 | --> |
3640 | 3656 |
|
3641 | 3657 | * `algorithm` {string} |
3642 | | -* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 3658 | +* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
3643 | 3659 | * `iv` {string|ArrayBuffer|Buffer|TypedArray|DataView|null} |
3644 | 3660 | * `options` {Object} [`stream.transform` options][] |
3645 | 3661 | * Returns: {Decipheriv} |
@@ -3833,6 +3849,9 @@ input.on('readable', () => { |
3833 | 3849 | <!-- YAML |
3834 | 3850 | added: v0.1.94 |
3835 | 3851 | changes: |
| 3852 | + - version: REPLACEME |
| 3853 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 3854 | + description: Passing a CryptoKey as `key` is no longer supported. |
3836 | 3855 | - version: v26.0.0 |
3837 | 3856 | pr-url: https://github.com/nodejs/node/pull/62453 |
3838 | 3857 | description: Passing a CryptoKey as `key` is deprecated. |
@@ -3847,7 +3866,7 @@ changes: |
3847 | 3866 | --> |
3848 | 3867 |
|
3849 | 3868 | * `algorithm` {string} |
3850 | | -* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 3869 | +* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
3851 | 3870 | * `options` {Object} [`stream.transform` options][] |
3852 | 3871 | * `encoding` {string} The string encoding to use when `key` is a string. |
3853 | 3872 | * Returns: {Hmac} |
@@ -3926,6 +3945,9 @@ input.on('readable', () => { |
3926 | 3945 | <!-- YAML |
3927 | 3946 | added: v11.6.0 |
3928 | 3947 | changes: |
| 3948 | + - version: REPLACEME |
| 3949 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 3950 | + description: Passing a CryptoKey as `key` is no longer supported. |
3929 | 3951 | - version: v26.1.0 |
3930 | 3952 | pr-url: https://github.com/nodejs/node/pull/62706 |
3931 | 3953 | description: Added JWK format support for ML-KEM and SLH-DSA |
@@ -3981,6 +4003,9 @@ of the passphrase is limited to 1024 bytes. |
3981 | 4003 | <!-- YAML |
3982 | 4004 | added: v11.6.0 |
3983 | 4005 | changes: |
| 4006 | + - version: REPLACEME |
| 4007 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 4008 | + description: Passing a CryptoKey as `key` is no longer supported. |
3984 | 4009 | - version: v26.1.0 |
3985 | 4010 | pr-url: https://github.com/nodejs/node/pull/62706 |
3986 | 4011 | description: Added JWK format support for ML-KEM and SLH-DSA |
@@ -5212,6 +5237,9 @@ An array of supported digest functions can be retrieved using |
5212 | 5237 | <!-- YAML |
5213 | 5238 | added: v0.11.14 |
5214 | 5239 | changes: |
| 5240 | + - version: REPLACEME |
| 5241 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 5242 | + description: Passing a CryptoKey as `privateKey` is no longer supported. |
5215 | 5243 | - version: |
5216 | 5244 | - v21.6.2 |
5217 | 5245 | - v20.11.1 |
@@ -5238,7 +5266,7 @@ changes: |
5238 | 5266 |
|
5239 | 5267 | <!--lint disable maximum-line-length remark-lint--> |
5240 | 5268 |
|
5241 | | -* `privateKey` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 5269 | +* `privateKey` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
5242 | 5270 | * `oaepHash` {string} The hash function to use for OAEP padding and MGF1. |
5243 | 5271 | **Default:** `'sha1'` |
5244 | 5272 | * `oaepLabel` {string|ArrayBuffer|Buffer|TypedArray|DataView} The label to |
@@ -5270,6 +5298,9 @@ attempting to use `RSA_PKCS1_PADDING` will fail. |
5270 | 5298 | <!-- YAML |
5271 | 5299 | added: v1.1.0 |
5272 | 5300 | changes: |
| 5301 | + - version: REPLACEME |
| 5302 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 5303 | + description: Passing a CryptoKey as `privateKey` is no longer supported. |
5273 | 5304 | - version: v15.0.0 |
5274 | 5305 | pr-url: https://github.com/nodejs/node/pull/35093 |
5275 | 5306 | description: Added string, ArrayBuffer, and CryptoKey as allowable key |
@@ -5283,8 +5314,8 @@ changes: |
5283 | 5314 |
|
5284 | 5315 | <!--lint disable maximum-line-length remark-lint--> |
5285 | 5316 |
|
5286 | | -* `privateKey` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
5287 | | - * `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 5317 | +* `privateKey` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
| 5318 | + * `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
5288 | 5319 | A PEM encoded private key. |
5289 | 5320 | * `passphrase` {string|ArrayBuffer|Buffer|TypedArray|DataView} An optional |
5290 | 5321 | passphrase for the private key. |
@@ -5311,6 +5342,9 @@ object, the `padding` property can be passed. Otherwise, this function uses |
5311 | 5342 | <!-- YAML |
5312 | 5343 | added: v1.1.0 |
5313 | 5344 | changes: |
| 5345 | + - version: REPLACEME |
| 5346 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 5347 | + description: Passing a CryptoKey as `key` is no longer supported. |
5314 | 5348 | - version: v15.0.0 |
5315 | 5349 | pr-url: https://github.com/nodejs/node/pull/35093 |
5316 | 5350 | description: Added string, ArrayBuffer, and CryptoKey as allowable key |
@@ -5324,7 +5358,7 @@ changes: |
5324 | 5358 |
|
5325 | 5359 | <!--lint disable maximum-line-length remark-lint--> |
5326 | 5360 |
|
5327 | | -* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 5361 | +* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
5328 | 5362 | * `passphrase` {string|ArrayBuffer|Buffer|TypedArray|DataView} An optional |
5329 | 5363 | passphrase for the private key. |
5330 | 5364 | * `padding` {crypto.constants} An optional padding value defined in |
@@ -5353,6 +5387,9 @@ be passed instead of a public key. |
5353 | 5387 | <!-- YAML |
5354 | 5388 | added: v0.11.14 |
5355 | 5389 | changes: |
| 5390 | + - version: REPLACEME |
| 5391 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 5392 | + description: Passing a CryptoKey as `key` is no longer supported. |
5356 | 5393 | - version: v15.0.0 |
5357 | 5394 | pr-url: https://github.com/nodejs/node/pull/35093 |
5358 | 5395 | description: Added string, ArrayBuffer, and CryptoKey as allowable key |
@@ -5372,9 +5409,9 @@ changes: |
5372 | 5409 |
|
5373 | 5410 | <!--lint disable maximum-line-length remark-lint--> |
5374 | 5411 |
|
5375 | | -* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
5376 | | - * `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
5377 | | - A PEM encoded public or private key, {KeyObject}, or {CryptoKey}. |
| 5412 | +* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
| 5413 | + * `key` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
| 5414 | + A PEM encoded public or private key, or {KeyObject}. |
5378 | 5415 | * `oaepHash` {string} The hash function to use for OAEP padding and MGF1. |
5379 | 5416 | **Default:** `'sha1'` |
5380 | 5417 | * `oaepLabel` {string|ArrayBuffer|Buffer|TypedArray|DataView} The label to |
@@ -6096,6 +6133,9 @@ Throws an error if FIPS mode is not available. |
6096 | 6133 | <!-- YAML |
6097 | 6134 | added: v12.0.0 |
6098 | 6135 | changes: |
| 6136 | + - version: REPLACEME |
| 6137 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 6138 | + description: Passing a CryptoKey as `key` is no longer supported. |
6099 | 6139 | - version: |
6100 | 6140 | - v26.1.0 |
6101 | 6141 | - v24.16.0 |
@@ -6129,7 +6169,7 @@ changes: |
6129 | 6169 |
|
6130 | 6170 | * `algorithm` {string | null | undefined} |
6131 | 6171 | * `data` {ArrayBuffer|Buffer|SharedArrayBuffer|TypedArray|DataView|string} |
6132 | | -* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 6172 | +* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
6133 | 6173 | * `callback` {Function} |
6134 | 6174 | * `err` {Error} |
6135 | 6175 | * `signature` {Buffer} |
@@ -6227,6 +6267,9 @@ not introduce timing vulnerabilities. |
6227 | 6267 | <!-- YAML |
6228 | 6268 | added: v12.0.0 |
6229 | 6269 | changes: |
| 6270 | + - version: REPLACEME |
| 6271 | + pr-url: https://github.com/nodejs/node/pull/63188 |
| 6272 | + description: Passing a CryptoKey as `key` is no longer supported. |
6230 | 6273 | - version: |
6231 | 6274 | - v26.1.0 |
6232 | 6275 | - v24.16.0 |
@@ -6263,7 +6306,7 @@ changes: |
6263 | 6306 |
|
6264 | 6307 | * `algorithm` {string|null|undefined} |
6265 | 6308 | * `data` {ArrayBuffer|Buffer|SharedArrayBuffer|TypedArray|DataView|string} |
6266 | | -* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey} |
| 6309 | +* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} |
6267 | 6310 | * `signature` {ArrayBuffer|Buffer|SharedArrayBuffer|TypedArray|DataView} |
6268 | 6311 | * `callback` {Function} |
6269 | 6312 | * `err` {Error} |
|