Sha256: 7512c053fe34bab07b9b22ec697720a4e8465cdf57410eadc5ce6d3e50699237

Contents?: true

Size: 318 Bytes

Versions: 9

Compression:

Stored size: 318 Bytes

Contents

describe :sha384_length, :shared => true do
  it "returns the length of the digest" do
    cur_digest = Digest::SHA384.new
    cur_digest.send(@method).should == SHA384Constants::BlankDigest.size
    cur_digest << SHA384Constants::Contents
    cur_digest.send(@method).should == SHA384Constants::Digest.size
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysl-digest-2.1 spec/sha384/shared/length.rb
rubysl-digest-1.2.0 spec/sha384/shared/length.rb
rubysl-digest-1.1.0 spec/sha384/shared/length.rb
rubysl-digest-2.0.8 spec/sha384/shared/length.rb
rubysl-digest-2.0.7 spec/sha384/shared/length.rb
rubysl-digest-1.0.1 spec/sha384/shared/length.rb
rubysl-digest-2.0.3 spec/sha384/shared/length.rb
rubysl-digest-1.0.0 spec/sha384/shared/length.rb
rubysl-digest-2.0.2 spec/sha384/shared/length.rb