| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4512,8 +4512,9 @@ changes: | |||
| 4512 | 4512 | - v21.6.2 | |
| 4513 | 4513 | - v20.11.1 | |
| 4514 | 4514 | - v18.19.1 | |
| 4515 | - pr-url: https://github.com/nodejs-private/node-private/pull/525 | ||
| 4516 | - description: The `RSA_PKCS1_PADDING` padding was disabled. | ||
| 4515 | + pr-url: https://github.com/nodejs-private/node-private/pull/515 | ||
| 4516 | + description: The `RSA_PKCS1_PADDING` padding was disabled unless the | ||
| 4517 | + OpenSSL build supports implicit rejection. | ||
| 4517 | 4518 | - version: v15.0.0 | |
| 4518 | 4519 | pr-url: https://github.com/nodejs/node/pull/35093 | |
| 4519 | 4520 | description: Added string, ArrayBuffer, and CryptoKey as allowable key | |
@@ -4555,8 +4556,10 @@ If `privateKey` is not a [`KeyObject`][], this function behaves as if | |||
| 4555 | 4556 | object, the `padding` property can be passed. Otherwise, this function uses | |
| 4556 | 4557 | `RSA_PKCS1_OAEP_PADDING`. | |
| 4557 | 4558 | ||
| 4558 | - The `crypto.constants.RSA_PKCS1_PADDING` padding is disabled in | ||
| 4559 | - [`crypto.privateDecrypt()`][] since the February 2024 security releases. <span class="deprecated-inline"></span> | ||
| 4559 | + Using `crypto.constants.RSA_PKCS1_PADDING` in [`crypto.privateDecrypt()`][] | ||
| 4560 | + requires OpenSSL to support implicit rejection (`rsa_pkcs1_implicit_rejection`). | ||
| 4561 | + If the version of OpenSSL used by Node.js does not support this feature, | ||
| 4562 | + attempting to use `RSA_PKCS1_PADDING` will fail. | ||
| 4560 | 4563 | ||
| 4561 | 4564 | ### `crypto.privateEncrypt(privateKey, buffer)` | |
| 4562 | 4565 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments