12#include <boost/scoped_ptr.hpp>
20digest(
const void* data,
const size_t data_len,
24 boost::scoped_ptr<Hash> hash(
26 hash->update(data, data_len);
28 len = hash->getOutputLength();
30 hash->final(result, len);
static CryptoLink & getCryptoLink()
Returns a reference to the singleton instance.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
HashAlgorithm
Hash algorithm identifiers.
void deleteHash(Hash *hash)
Delete an Hash object.
void digest(const void *data, const size_t data_len, const HashAlgorithm hash_algorithm, isc::util::OutputBuffer &result, size_t len)
Create an Hash digest for the given data.
Defines the logger used by the top-level component of kea-lfc.