Module HMAC
In: lib/hmac/hmac.rb
lib/hmac/sha1.rb
lib/hmac/sha2.rb

This module provides common interface to HMAC engines. HMAC standard is documented in RFC 2104:

  H. Krawczyk et al., "HMAC: Keyed-Hashing for Message Authentication",
  RFC 2104, February 1997

These APIs are inspired by JCE 1.2‘s javax.crypto.Mac interface.

  <URL:http://java.sun.com/security/JCE1.2/spec/apidoc/javax/crypto/Mac.html>

Classes and Modules

Class HMAC::Base
Class HMAC::SHA1
Class HMAC::SHA256
Class HMAC::SHA384
Class HMAC::SHA512

Constants

STATUS_INITIALIZED = 0, 1

[Validate]