Skip to content

Commit 4e843c8

Browse files
committed
iojs engine fix
1 parent ed9d31d commit 4e843c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/encryptEngines/io.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (keyPair, options) {
1111
padding = constants.RSA_PKCS1_PADDING;
1212
}
1313
if (usePrivate) {
14-
/* opennssl can't make it */
14+
// openssl don't support oaep padding for private encrypt
1515
if (padding === constants.RSA_PKCS1_OAEP_PADDING) {
1616
return jsEngine.encrypt(buffer, usePrivate);
1717
}
@@ -34,7 +34,7 @@ module.exports = function (keyPair, options) {
3434
}
3535

3636
if (usePublic) {
37-
/* opennssl can't make it */
37+
// openssl don't support oaep padding for public decrypt
3838
if (padding === constants.RSA_PKCS1_OAEP_PADDING) {
3939
return jsEngine.decrypt(buffer, usePublic);
4040
}

0 commit comments

Comments
 (0)