Skip to content

Commit fe22990

Browse files
authored
doc,crypto: add changelog and note about disabled RSA_PKCS1_PADDING
PR-URL: #51782 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent 17187dd commit fe22990

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/crypto.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4388,6 +4388,12 @@ An array of supported digest functions can be retrieved using
43884388
<!-- YAML
43894389
added: v0.11.14
43904390
changes:
4391+
- version:
4392+
- v21.6.2
4393+
- v20.11.1
4394+
- v18.19.1
4395+
pr-url: https://github.com/nodejs-private/node-private/pull/525
4396+
description: The `RSA_PKCS1_PADDING` padding was disabled.
43914397
- version: v15.0.0
43924398
pr-url: https://github.com/nodejs/node/pull/35093
43934399
description: Added string, ArrayBuffer, and CryptoKey as allowable key
@@ -4429,6 +4435,9 @@ If `privateKey` is not a [`KeyObject`][], this function behaves as if
44294435
object, the `padding` property can be passed. Otherwise, this function uses
44304436
`RSA_PKCS1_OAEP_PADDING`.
44314437

4438+
The `crypto.constants.RSA_PKCS1_PADDING` padding is disabled in
4439+
[`crypto.privateDecrypt()`][] since the February 2024 security releases. <span class="deprecated-inline"></span>
4440+
44324441
### `crypto.privateEncrypt(privateKey, buffer)`
44334442

44344443
<!-- YAML

0 commit comments

Comments
 (0)