mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Upgraded to open_id_authentication plugin at 00d8bc7f97 and unpacked ruby-openid gem version 2.1.2.
This commit is contained in:
parent
6149900e0c
commit
e92dae2ffc
227 changed files with 30857 additions and 669 deletions
25
vendor/gems/ruby-openid-2.1.2/lib/hmac/sha2.rb
vendored
Normal file
25
vendor/gems/ruby-openid-2.1.2/lib/hmac/sha2.rb
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
require 'hmac/hmac'
|
||||
require 'digest/sha2'
|
||||
|
||||
module HMAC
|
||||
class SHA256 < Base
|
||||
def initialize(key = nil)
|
||||
super(Digest::SHA256, 64, 32, key)
|
||||
end
|
||||
public_class_method :new, :digest, :hexdigest
|
||||
end
|
||||
|
||||
class SHA384 < Base
|
||||
def initialize(key = nil)
|
||||
super(Digest::SHA384, 128, 48, key)
|
||||
end
|
||||
public_class_method :new, :digest, :hexdigest
|
||||
end
|
||||
|
||||
class SHA512 < Base
|
||||
def initialize(key = nil)
|
||||
super(Digest::SHA512, 128, 64, key)
|
||||
end
|
||||
public_class_method :new, :digest, :hexdigest
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue