Sha256: 750bd3a41f9063e225e7aa79973085682c4e5897ded797a37a92e9fbf838111e

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

# encoding: UTF-8
require File.dirname(__FILE__) + '/spec_helper'

describe "the pbkdf2 function" do
  # Made with
  # sjcl.misc.pbkdf2("s33krit", [1788155662, -333625222], 10000, 256)
  it "Should match the SJCL version" do
    expected = [1281834603, 873294941, -458308553, 416318112, -296447020, -914288361, -236896704, 960061983]
    key = SJCL::Misc.pbkdf2("s33krit", "apUXDuwdSHo=", 10000, 256)
    SJCL::BitArray.compare(expected, key).should eql(true)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sjcl-1.0.1 spec/pbkdf2_spec.rb
sjcl-1.0.0 spec/pbkdf2_spec.rb
sjcl-0.0.1 spec/pbkdf2_spec.rb