Sha256: e0a268fa541774c8bb83510c8cc624071ee0c73ae0dbc1b02e6ad4b301f7b860
Contents?: true
Size: 579 Bytes
Versions: 24
Compression:
Stored size: 579 Bytes
Contents
require File.expand_path('../../shared/constants', __FILE__) require 'openssl' describe "OpenSSL::HMAC.hexdigest" do it "returns an SHA1 hex digest" do cur_digest = OpenSSL::Digest::Digest.new('SHA1') cur_digest.hexdigest.should == HMACConstants::BlankSHA1HexDigest hexdigest = OpenSSL::HMAC.hexdigest(cur_digest, HMACConstants::Key, HMACConstants::Contents) hexdigest.should == HMACConstants::SHA1Hexdigest end end # Should add in similar specs for MD5, RIPEMD160, and SHA256
Version data entries
24 entries across 24 versions & 1 rubygems