19 if (c.impl_ == NULL) {
26CryptoLink::getCryptoLinkInternal() {
34 return (
new Hash(hash_algorithm));
41 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.
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.
static void initialize()
Initialize the library manually.
virtual RNGPtr & getRNG()
Get the global RNG.
boost::shared_ptr< RNG > RNGPtr
HashAlgorithm
Hash algorithm identifiers.
Defines the logger used by the top-level component of kea-lfc.