File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " node-rsa" ,
3
- "version" : " 0.2.12 " ,
3
+ "version" : " 0.2.13 " ,
4
4
"description" : " Node.js RSA library" ,
5
5
"main" : " src/NodeRSA.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ module.exports.Key = (function() {
221
221
}
222
222
}
223
223
224
- for ( var i in buffers ) {
224
+ for ( var i = 0 ; i < buffers . length ; i ++ ) {
225
225
var buf = buffers [ i ] ;
226
226
227
227
var m = new BigInteger ( this . encryptionScheme . encPad ( buf ) ) ;
@@ -232,11 +232,6 @@ module.exports.Key = (function() {
232
232
}
233
233
234
234
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
-
240
235
results . push ( encryptedBuffer ) ;
241
236
}
242
237
You can’t perform that action at this time.
0 commit comments