Class: Net::SSH::Transport::OSSL::HMAC::Abstract

Class | Net::SSH::Transport::OSSL::HMAC::Abstract
In: | lib/net/ssh/transport/ossl/hmac/hmac.rb
Parent: | Object

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

### Methods

digest new

### Attributes

digest_class | [R] | The digest algorithm to use when computing the HMAC digest.
key | [RW] | The key to use for this instance.
key_length | [R] | The number of bytes that this algorithm expects the key to contain.
mac_length | [R] | 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.

new( key )

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

[Validate]