Skip to content

Commit

Permalink
Test very long password.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchest committed May 4, 2015
1 parent 2fce519 commit 77d510b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unittests.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ var inputs = [
'OhW8rx9L9XSPXTrMAm+Yk1+Vhe0RSlOWg/ZP6RDCV2UAa8uxlpJdgtnas9ndc9f6cSXRhrLiaqI/tHd2'+
'KokyJqiJbRow0/Kd14J9CnjDJB3PrGKtDjcwwyhNNmu1cH8jgK12JKIjbIXXSylH0WgIMfr1xz9Otvku'+
'67WElrWTYkas4lOMKyJtLfJOOG7Tzqqbhw7GLQ4OgSGhu'
},
{
password: 'this is a very long string, which should be pre-hashed by PBKDF2 as it exceeds block size',
salt: 'some salt',
logN: 4,
r: 4,
dkLen: 16,
encoding: 'hex',
result: '518a355ac6468a4d98708adf03577df6'
}
]

Expand Down Expand Up @@ -274,5 +283,8 @@ describe('input/output test', function(){
it('input 9', function(done) {
input_output_test(9, done);
});
it('input 10', function(done) {
input_output_test(10, done);
});

});

0 comments on commit 77d510b

Please sign in to comment.