14 namespace cryptolink {
19 if (c.impl_ == NULL) {
26 CryptoLink::getCryptoLinkInternal() {
34 return (
new Hash(hash_algorithm));
41 return (
new HMAC(secret, secret_len, hash_algorithm));
HMAC * createHMAC(const void *secret, size_t secret_len, const HashAlgorithm hash_algorithm)
Factory function for HMAC objects.
HashAlgorithm
Hash algorithm identifiers.
static void initialize()
Initialize the library manually.
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.
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< RNG > RNGPtr
virtual RNGPtr & getRNG()
Get the global RNG.