emerose/pbkdf2-ruby — Issue #1: iterations > 2 makes method call bin_string to fail
Author: archanasingh
Created: 2012-01-14 19:23:52+00:00
State: open

it "should ensure that the derived key really is that long" do
length = 123
p = PBKDF2.new(:password=>"s33krit", :salt=>"nacl", :iterations=>1000, :key_length=>length)
p.bin_string.length.should == length
end

The above test fails.
Change iterations to 1 or 2 and test passes, anything greater than 2 makes this test to fail.