8 #ifndef BOTAN_TLS_HANDSHAKE_HASH_H__
9 #define BOTAN_TLS_HANDSHAKE_HASH_H__
11 #include <botan/secmem.h>
12 #include <botan/tls_version.h>
13 #include <botan/tls_magic.h>
25 void update(
const uint8_t in[],
size_t length)
26 { m_data += std::make_pair(in, length); }
28 void update(
const std::vector<uint8_t>& in)
32 const std::string& mac_algo)
const;
34 const std::vector<uint8_t>&
get_contents()
const {
return m_data; }
36 void reset() { m_data.clear(); }
38 std::vector<uint8_t> m_data;
const std::vector< uint8_t > & get_contents() const
std::vector< T, secure_allocator< T >> secure_vector
void update(const uint8_t in[], size_t length)
void update(const std::vector< uint8_t > &in)