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