Class: Net::SSH::Transport::OSSL::HMACFactory

Class | Net::SSH::Transport::OSSL::HMACFactory
In: | lib/net/ssh/transport/ossl/hmac-factory.rb
Parent: | Object

A factory class for returning new HMAC algorithm instances.

### Methods

find_algorithm get get_key_length new

### Public Class methods

new( algorithms )

Create a new instance of the HMACFactory that uses the given Hash-like to map SSH2 HMAC algorithm names to instances of factories that can instantiate those algorithms.

### Public Instance methods

find_algorithm( name )

Searches all registered algorithm sets for the one with the given name. Returns `nil` if no such algorithm exists.

get( name, key="" )

Return a new instance of the HMAC algorithm for the given name. If no such algorithm exists, a HMACAlgorithmNotFound error will be raised.

get_key_length( name )

Return the key length of the named HMAC algorithm. If no such algorithm exists, raise HMACAlgorithmNotFound.

[Validate]