GeezerVison is showing github.com — doc,crypto: further clarify RSA_PKCS1_PADDING support · nodejs/node@8bfb8f5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/crypto.md +7-4Lines changed: 7 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4514,8 +4514,9 @@ changes: |
4514 | 4514 | - v21.6.2 |
4515 | 4515 | - v20.11.1 |
4516 | 4516 | - v18.19.1 |
4517 | | - pr-url: https://github.com/nodejs-private/node-private/pull/525 |
4518 | | - description: The `RSA_PKCS1_PADDING` padding was disabled. |
| 4517 | + pr-url: https://github.com/nodejs-private/node-private/pull/515 |
| 4518 | + description: The `RSA_PKCS1_PADDING` padding was disabled unless the |
| 4519 | + OpenSSL build supports implicit rejection. |
4519 | 4520 | - version: v15.0.0 |
4520 | 4521 | pr-url: https://github.com/nodejs/node/pull/35093 |
4521 | 4522 | description: Added string, ArrayBuffer, and CryptoKey as allowable key |
@@ -4557,8 +4558,10 @@ If `privateKey` is not a [`KeyObject`][], this function behaves as if |
4557 | 4558 | object, the `padding` property can be passed. Otherwise, this function uses |
4558 | 4559 | `RSA_PKCS1_OAEP_PADDING`. |
4559 | 4560 |
|
4560 | | -The `crypto.constants.RSA_PKCS1_PADDING` padding is disabled in |
4561 | | -[`crypto.privateDecrypt()`][] since the February 2024 security releases. <span class="deprecated-inline"></span> |
| 4561 | +Using `crypto.constants.RSA_PKCS1_PADDING` in [`crypto.privateDecrypt()`][] |
| 4562 | +requires OpenSSL to support implicit rejection (`rsa_pkcs1_implicit_rejection`). |
| 4563 | +If the version of OpenSSL used by Node.js does not support this feature, |
| 4564 | +attempting to use `RSA_PKCS1_PADDING` will fail. |
4562 | 4565 |
|
4563 | 4566 | ### `crypto.privateEncrypt(privateKey, buffer)` |
4564 | 4567 |
|
|