8 #ifndef BOTAN_COMB4P_H__
9 #define BOTAN_COMB4P_H__
11 #include <botan/hash.h>
28 size_t hash_block_size()
const override;
32 return m_hash1->output_length() + m_hash2->output_length();
37 return new Comb4P(m_hash1->clone(), m_hash2->clone());
40 std::string
name()
const override
42 return "Comb4P(" + m_hash1->name() +
"," + m_hash2->name() +
")";
45 void clear()
override;
47 void add_data(
const uint8_t input[],
size_t length)
override;
48 void final_result(uint8_t out[])
override;
50 std::unique_ptr<HashFunction> m_hash1, m_hash2;
std::string name() const override
size_t output_length() const override
HashFunction * clone() const override