GeezerVison is showing github.com — doc,crypto: add changelog and note about disabled RSA_PKCS1_PADDING · nodejs/node@c7baf7b
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 +9Lines changed: 9 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4510,6 +4510,12 @@ An array of supported digest functions can be retrieved using |
4510 | 4510 | <!-- YAML |
4511 | 4511 | added: v0.11.14 |
4512 | 4512 | changes: |
| 4513 | + - version: |
| 4514 | + - v21.6.2 |
| 4515 | + - v20.11.1 |
| 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. |
4513 | 4519 | - version: v15.0.0 |
4514 | 4520 | pr-url: https://github.com/nodejs/node/pull/35093 |
4515 | 4521 | description: Added string, ArrayBuffer, and CryptoKey as allowable key |
@@ -4551,6 +4557,9 @@ If `privateKey` is not a [`KeyObject`][], this function behaves as if |
4551 | 4557 | object, the `padding` property can be passed. Otherwise, this function uses |
4552 | 4558 | `RSA_PKCS1_OAEP_PADDING`. |
4553 | 4559 |
|
| 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> |
| 4562 | + |
4554 | 4563 | ### `crypto.privateEncrypt(privateKey, buffer)` |
4555 | 4564 |
|
4556 | 4565 | <!-- YAML |
|