24 return (
new Hash(hash_algorithm));
30 return (
new HMAC(secret, secret_len, hash_algorithm));
Singleton entry point and factory class.
Hash * createHash(const HashAlgorithm hash_algorithm)
Factory function for Hash objects.
virtual RNGPtr const & getRNG() const
Get the global RNG.
static CryptoLink & getCryptoLink()
Returns a reference to the singleton instance.
HMAC * createHMAC(const void *secret, size_t secret_len, const HashAlgorithm hash_algorithm)
Factory function for HMAC objects.
boost::shared_ptr< RNG > RNGPtr
Type representing the pointer to the RNG.
HashAlgorithm
Hash algorithm identifiers.
Defines the logger used by the top-level component of kea-lfc.