| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4461,6 +4461,42 @@ const server = http2.createSecureServer({ | |||
| 4461 | 4461 | }); | |
| 4462 | 4462 | ``` | |
| 4463 | 4463 | ||
| 4464 | + ### DEP0203: Passing `CryptoKey` to `node:crypto` APIs | ||
| 4465 | + | ||
| 4466 | + <!-- YAML | ||
| 4467 | + changes: | ||
| 4468 | + - version: REPLACEME | ||
| 4469 | + pr-url: https://github.com/nodejs/node/pull/62321 | ||
| 4470 | + description: Documentation-only deprecation. | ||
| 4471 | + --> | ||
| 4472 | + | ||
| 4473 | + Type: Documentation-only | ||
| 4474 | + | ||
| 4475 | + Passing a [`CryptoKey`][] to `node:crypto` functions is deprecated and | ||
| 4476 | + will throw an error in a future version. This includes | ||
| 4477 | + [`crypto.createPublicKey()`][], [`crypto.createPrivateKey()`][], | ||
| 4478 | + [`crypto.sign()`][], [`crypto.verify()`][], | ||
| 4479 | + [`crypto.publicEncrypt()`][], [`crypto.publicDecrypt()`][], | ||
| 4480 | + [`crypto.privateEncrypt()`][], [`crypto.privateDecrypt()`][], | ||
| 4481 | + [`Sign.prototype.sign()`][], [`Verify.prototype.verify()`][], | ||
| 4482 | + [`crypto.createHmac()`][], [`crypto.createCipheriv()`][], | ||
| 4483 | + [`crypto.createDecipheriv()`][], [`crypto.encapsulate()`][], and | ||
| 4484 | + [`crypto.decapsulate()`][]. | ||
| 4485 | + | ||
| 4486 | + ### DEP0204: `KeyObject.from()` with non-extractable `CryptoKey` | ||
| 4487 | + | ||
| 4488 | + <!-- YAML | ||
| 4489 | + changes: | ||
| 4490 | + - version: REPLACEME | ||
| 4491 | + pr-url: https://github.com/nodejs/node/pull/62321 | ||
| 4492 | + description: Documentation-only deprecation. | ||
| 4493 | + --> | ||
| 4494 | + | ||
| 4495 | + Type: Documentation-only | ||
| 4496 | + | ||
| 4497 | + Passing a non-extractable [`CryptoKey`][] to [`KeyObject.from()`][] is | ||
| 4498 | + deprecated and will throw an error in a future version. | ||
| 4499 | + | ||
| 4464 | 4500 | [DEP0142]: #dep0142-repl_builtinlibs | |
| 4465 | 4501 | [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf | |
| 4466 | 4502 | [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 | |
@@ -4478,14 +4514,18 @@ const server = http2.createSecureServer({ | |||
| 4478 | 4514 | [`Buffer.from(buffer)`]: buffer.md#static-method-bufferfrombuffer | |
| 4479 | 4515 | [`Buffer.isBuffer()`]: buffer.md#static-method-bufferisbufferobj | |
| 4480 | 4516 | [`Cipheriv`]: crypto.md#class-cipheriv | |
| 4517 | + [`CryptoKey`]: webcrypto.md#class-cryptokey | ||
| 4481 | 4518 | [`Decipheriv`]: crypto.md#class-decipheriv | |
| 4482 | 4519 | [`Duplex.toWeb()`]: stream.md#streamduplextowebstreamduplex-options | |
| 4483 | 4520 | [`Error.isError`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/isError | |
| 4521 | + [`KeyObject.from()`]: crypto.md#static-method-keyobjectfromkey | ||
| 4484 | 4522 | [`REPLServer.clearBufferedCommand()`]: repl.md#replserverclearbufferedcommand | |
| 4485 | 4523 | [`ReadStream.open()`]: fs.md#class-fsreadstream | |
| 4486 | 4524 | [`Server.getConnections()`]: net.md#servergetconnectionscallback | |
| 4487 | 4525 | [`Server.listen({fd: <number>})`]: net.md#serverlistenhandle-backlog-callback | |
| 4526 | + [`Sign.prototype.sign()`]: crypto.md#signsignprivatekey-outputencoding | ||
| 4488 | 4527 | [`String.prototype.toWellFormed`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed | |
| 4528 | + [`Verify.prototype.verify()`]: crypto.md#verifyverifyobject-signature-signatureencoding | ||
| 4489 | 4529 | [`WriteStream.open()`]: fs.md#class-fswritestream | |
| 4490 | 4530 | [`assert`]: assert.md | |
| 4491 | 4531 | [`asyncResource.runInAsyncScope()`]: async_context.md#asyncresourceruninasyncscopefn-thisarg-args | |
@@ -4503,11 +4543,21 @@ const server = http2.createSecureServer({ | |||
| 4503 | 4543 | [`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options | |
| 4504 | 4544 | [`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options | |
| 4505 | 4545 | [`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options | |
| 4546 | + [`crypto.createPrivateKey()`]: crypto.md#cryptocreateprivatekeykey | ||
| 4547 | + [`crypto.createPublicKey()`]: crypto.md#cryptocreatepublickeykey | ||
| 4548 | + [`crypto.decapsulate()`]: crypto.md#cryptodecapsulatekey-ciphertext-callback | ||
| 4549 | + [`crypto.encapsulate()`]: crypto.md#cryptoencapsulatekey-callback | ||
| 4506 | 4550 | [`crypto.fips`]: crypto.md#cryptofips | |
| 4507 | 4551 | [`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback | |
| 4552 | + [`crypto.privateDecrypt()`]: crypto.md#cryptoprivatedecryptprivatekey-buffer | ||
| 4553 | + [`crypto.privateEncrypt()`]: crypto.md#cryptoprivateencryptprivatekey-buffer | ||
| 4554 | + [`crypto.publicDecrypt()`]: crypto.md#cryptopublicdecryptkey-buffer | ||
| 4555 | + [`crypto.publicEncrypt()`]: crypto.md#cryptopublicencryptkey-buffer | ||
| 4508 | 4556 | [`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback | |
| 4509 | 4557 | [`crypto.scrypt()`]: crypto.md#cryptoscryptpassword-salt-keylen-options-callback | |
| 4510 | 4558 | [`crypto.setEngine()`]: crypto.md#cryptosetengineengine-flags | |
| 4559 | + [`crypto.sign()`]: crypto.md#cryptosignalgorithm-data-key-callback | ||
| 4560 | + [`crypto.verify()`]: crypto.md#cryptoverifyalgorithm-data-key-signature-callback | ||
| 4511 | 4561 | [`decipher.final()`]: crypto.md#decipherfinaloutputencoding | |
| 4512 | 4562 | [`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding | |
| 4513 | 4563 | [`dirent.parentPath`]: fs.md#direntparentpath | |
| Back | FazBrowse Home | New Git URL |
0 commit comments