The base class of all OpenSSL-based HMAC algorithm wrappers.

Methods
Attributes
[R] digest_class The digest algorithm to use when computing the HMAC digest.
[RW] key The key to use for this instance.
[R] key_length The number of bytes that this algorithm expects the key to contain.
[R] mac_length The number of bytes in the digest generated by this algorithm.
Public Instance methods
digest( data )

Compute the HMAC digest for the given data string.

    # File lib/net/ssh/transport/ossl/hmac/hmac.rb, line 51
51:             def digest( data )
52:               OpenSSL::HMAC.digest( digest_class.new, key, data )[0,mac_length]
53:             end
new( key )

Return a new HMAC algorithm just like the current one, but using the given key.

    # File lib/net/ssh/transport/ossl/hmac/hmac.rb, line 44
44:             def new( key )
45:               mac = dup
46:               mac.key = key[ 0, key_length ]
47:               return mac
48:             end

[Validate]