blob: 4e7c1f5283bdbc5a7649613d9f9e85e4a2eb85a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/**
* TLS Handshake Hash Source File
* (C) 2004-2006 Jack Lloyd
*
* Released under the terms of the Botan license
*/
#ifndef BOTAN_HANDSHAKE_HASH__
#define BOTAN_HANDSHAKE_HASH__
#include <botan/secmem.h>
namespace Botan {
using namespace Botan;
/**
* TLS Handshake Hash
*/
class BOTAN_DLL HandshakeHash
{
public:
void update(const byte in[], u32bit length)
{ data.append(in, length); }
void update(const MemoryRegion<byte>& in)
{ update(in.begin(), in.size()); }
void update(byte in)
{ update(&in, 1); }
SecureVector<byte> final();
SecureVector<byte> final_ssl3(const MemoryRegion<byte>&);
private:
SecureVector<byte> data;
};
}
#endif
|