Botan 1.10.17
tls_session_key.h
Go to the documentation of this file.
1/*
2* TLS Session Key
3* (C) 2004-2006 Jack Lloyd
4*
5* Released under the terms of the Botan license
6*/
7
8#ifndef BOTAN_TLS_SESSION_KEYS_H__
9#define BOTAN_TLS_SESSION_KEYS_H__
10
11#include <botan/tls_suites.h>
12#include <botan/tls_exceptn.h>
13#include <botan/symkey.h>
14
15namespace Botan {
16
17/**
18* TLS Session Keys
19*/
20class BOTAN_DLL SessionKeys
21 {
22 public:
25
28
31
33
37 private:
38 SymmetricKey ssl3_keygen(size_t, const MemoryRegion<byte>&,
39 const MemoryRegion<byte>&,
40 const MemoryRegion<byte>&);
41 SymmetricKey tls1_keygen(size_t, const MemoryRegion<byte>&,
42 const MemoryRegion<byte>&,
43 const MemoryRegion<byte>&);
44
45 SecureVector<byte> master_sec;
46 SymmetricKey c_cipher, s_cipher, c_mac, s_mac;
47 InitializationVector c_iv, s_iv;
48 };
49
50}
51
52#endif
InitializationVector client_iv() const
SymmetricKey server_mac_key() const
SymmetricKey server_cipher_key() const
InitializationVector server_iv() const
SecureVector< byte > master_secret() const
SymmetricKey client_cipher_key() const
SymmetricKey client_mac_key() const
OctetString SymmetricKey
Definition symkey.h:147
OctetString InitializationVector
Definition symkey.h:152
Version_Code
Definition tls_magic.h:22