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

Public Class methods

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

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

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

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

[Validate]