diff options
Diffstat (limited to 'vendor/gems/ruby-openid-2.1.4/lib/hmac/sha1.rb')
-rw-r--r-- | vendor/gems/ruby-openid-2.1.4/lib/hmac/sha1.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/gems/ruby-openid-2.1.4/lib/hmac/sha1.rb b/vendor/gems/ruby-openid-2.1.4/lib/hmac/sha1.rb new file mode 100644 index 000000000..d2f0088a3 --- /dev/null +++ b/vendor/gems/ruby-openid-2.1.4/lib/hmac/sha1.rb @@ -0,0 +1,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 |