Skip to content

Commit c816fac

Browse files
committed
iojs engine fix
1 parent 407022a commit c816fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encryptEngines/io.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function (keyPair, options) {
3737

3838
/* opennssl can't make it */
3939
if (padding === constants.RSA_PKCS1_OAEP_PADDING) {
40-
return jsEngine.decrypt(buffer, usePrivate);
40+
return jsEngine.decrypt(buffer, usePublic);
4141
}
4242

4343
if (usePublic) {

0 commit comments

Comments
 (0)