Skip to content

Commit b53919d

Browse files
panvatargos
authored andcommitted
doc,crypto: add changelog and note about disabled RSA_PKCS1_PADDING
PR-URL: #51782 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent af5875c commit b53919d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/crypto.md

+9
Original file line numberDiff line numberDiff line change
@@ -4508,6 +4508,12 @@ An array of supported digest functions can be retrieved using
45084508
<!-- YAML
45094509
added: v0.11.14
45104510
changes:
4511+
- version:
4512+
- v21.6.2
4513+
- v20.11.1
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.
45114517
- version: v15.0.0
45124518
pr-url: https://github.com/nodejs/node/pull/35093
45134519
description: Added string, ArrayBuffer, and CryptoKey as allowable key
@@ -4549,6 +4555,9 @@ If `privateKey` is not a [`KeyObject`][], this function behaves as if
45494555
object, the `padding` property can be passed. Otherwise, this function uses
45504556
`RSA_PKCS1_OAEP_PADDING`.
45514557

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>
4560+
45524561
### `crypto.privateEncrypt(privateKey, buffer)`
45534562

45544563
<!-- YAML

0 commit comments

Comments
 (0)