We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407022a commit c816facCopy full SHA for c816fac
src/encryptEngines/io.js
@@ -37,7 +37,7 @@ module.exports = function (keyPair, options) {
37
38
/* opennssl can't make it */
39
if (padding === constants.RSA_PKCS1_OAEP_PADDING) {
40
- return jsEngine.decrypt(buffer, usePrivate);
+ return jsEngine.decrypt(buffer, usePublic);
41
}
42
43
if (usePublic) {
0 commit comments