You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @deprecated see [CVE-2023-46809](https://nodejs.org/en/blog/vulnerability/february-2024-security-releases)
51
+
*/
49
52
staticRSA_PKCS1_PADDING=RSA_PKCS1_PADDING
50
53
51
54
/** Type string of the asymmetric key */
@@ -124,10 +127,10 @@ class Rsa {
124
127
*
125
128
* @param {string} plaintext - Cleartext to encode.
126
129
* @param {KeyLike} publicKey - The `RsaPublicKey`.
127
-
* @param {number} [padding = RSA_PKCS1_OAEP_PADDING] - Value of the `RSA_PKCS1_OAEP_PADDING` or `RSA_PKCS1_PADDING`, default is `RSA_PKCS1_OAEP_PADDING`.
130
+
* @param {number} [padding = RSA_PKCS1_OAEP_PADDING] - Value of the `RSA_PKCS1_OAEP_PADDING, default is `RSA_PKCS1_OAEP_PADDING`.
128
131
*
129
132
* @returns {string} Base64-encoded ciphertext.
130
-
* @throws {RangeError} - While the padding isn't `RSA_PKCS1_OAEP_PADDING` nor `RSA_PKCS1_PADDING`.
133
+
* @throws {RangeError} - While the padding isn't `RSA_PKCS1_OAEP_PADDING`.
* @param {string} ciphertext - Was previously encrypted string using the corresponding public certificate.
145
148
* @param {KeyLike} privateKey - The `RsaPrivateKey`.
146
-
* @param {number} [padding = RSA_PKCS1_OAEP_PADDING] - Value of the `RSA_PKCS1_OAEP_PADDING` or `RSA_PKCS1_PADDING`, default is `RSA_PKCS1_OAEP_PADDING`.
149
+
* @param {number} [padding = RSA_PKCS1_OAEP_PADDING] - Value of the `RSA_PKCS1_OAEP_PADDING, default is `RSA_PKCS1_OAEP_PADDING`.
147
150
*
148
151
* @returns {string} Utf-8 plaintext.
149
-
* @throws {RangeError} - While the padding isn't `RSA_PKCS1_OAEP_PADDING` nor `RSA_PKCS1_PADDING`.
152
+
* @throws {RangeError} - While the padding isn't `RSA_PKCS1_OAEP_PADDING`.
0 commit comments