# File lib/openid/cryptutil.rb, line 51 def CryptUtil.hmac_sha256(key, text) if Digest.const_defined? :HMAC Digest::HMAC.new(key,Digest::SHA256).update(text).digest else return HMAC::SHA256.digest(key, text) end end