11#include <botan/hash.h>
34 return m_hash1->output_length() + m_hash2->output_length();
39 return new Comb4P(m_hash1->clone(), m_hash2->clone());
42 std::unique_ptr<HashFunction>
copy_state()
const override;
44 std::string
name()
const override
46 return "Comb4P(" + m_hash1->name() +
"," + m_hash2->name() +
")";
49 void clear()
override;
53 void add_data(
const uint8_t input[],
size_t length)
override;
54 void final_result(uint8_t out[])
override;
56 std::unique_ptr<HashFunction> m_hash1, m_hash2;
HashFunction * clone() const override
size_t output_length() const override
std::string name() const override
virtual size_t hash_block_size() const
virtual std::unique_ptr< HashFunction > copy_state() const =0
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_FUTURE_INTERNAL_HEADER(hdr)