9#include <boost/noncopyable.hpp>
13#ifndef ISC_CRYPTO_HASH_H
14#define ISC_CRYPTO_HASH_H
27class Hash :
private boost::noncopyable {
62 void update(
const void* data,
const size_t len);
92 void final(
void* result,
size_t len);
106 std::vector<uint8_t>
final(
size_t len);
131void digest(
const void* data,
132 const size_t data_len,
Hash * createHash(const HashAlgorithm hash_algorithm)
Factory function for Hash objects.
Botan implementation of Hash.
void update(const void *data, const size_t len)
Add data to digest.
size_t getOutputLength() const
Returns the output size of the digest.
HashAlgorithm getHashAlgorithm() const
Returns the HashAlgorithm of the object.
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.