summaryrefslogtreecommitdiffstats
path: root/vendor/gems/ruby-openid-2.1.4/lib/hmac/sha1.rb
blob: d2f0088a3bcb95a6dca8337addf7e50b09f42c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'hmac/hmac'
require 'digest/sha1'

module HMAC
  class SHA1 < Base
    def initialize(key = nil)
      super(Digest::SHA1, 64, 20, key)
    end
    public_class_method :new, :digest, :hexdigest
  end
end