File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " node-rsa" ,
3- "version" : " 0.2.12 " ,
3+ "version" : " 0.2.13 " ,
44 "description" : " Node.js RSA library" ,
55 "main" : " src/NodeRSA.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ module.exports.Key = (function() {
221221 }
222222 }
223223
224- for ( var i in buffers ) {
224+ for ( var i = 0 ; i < buffers . length ; i ++ ) {
225225 var buf = buffers [ i ] ;
226226
227227 var m = new BigInteger ( this . encryptionScheme . encPad ( buf ) ) ;
@@ -232,11 +232,6 @@ module.exports.Key = (function() {
232232 }
233233
234234 var encryptedBuffer = c . toBuffer ( this . encryptedDataLength ) ;
235- /*var encryptedBuffer = c.toBuffer(true);
236- while (encryptedBuffer.length < this.encryptedDataLength) {
237- encryptedBuffer = Buffer.concat([new Buffer([0]), encryptedBuffer]);
238- }*/
239-
240235 results . push ( encryptedBuffer ) ;
241236 }
242237
You can’t perform that action at this time.
0 commit comments