Skip to content

Commit 77d510b

Browse files
committed
Test very long password.
1 parent 2fce519 commit 77d510b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unittests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,15 @@ var inputs = [
230230
'OhW8rx9L9XSPXTrMAm+Yk1+Vhe0RSlOWg/ZP6RDCV2UAa8uxlpJdgtnas9ndc9f6cSXRhrLiaqI/tHd2'+
231231
'KokyJqiJbRow0/Kd14J9CnjDJB3PrGKtDjcwwyhNNmu1cH8jgK12JKIjbIXXSylH0WgIMfr1xz9Otvku'+
232232
'67WElrWTYkas4lOMKyJtLfJOOG7Tzqqbhw7GLQ4OgSGhu'
233+
},
234+
{
235+
password: 'this is a very long string, which should be pre-hashed by PBKDF2 as it exceeds block size',
236+
salt: 'some salt',
237+
logN: 4,
238+
r: 4,
239+
dkLen: 16,
240+
encoding: 'hex',
241+
result: '518a355ac6468a4d98708adf03577df6'
233242
}
234243
]
235244

@@ -274,5 +283,8 @@ describe('input/output test', function(){
274283
it('input 9', function(done) {
275284
input_output_test(9, done);
276285
});
286+
it('input 10', function(done) {
287+
input_output_test(10, done);
288+
});
277289

278290
});

0 commit comments

Comments
 (0)