diff options
author | lloyd <[email protected]> | 2011-12-23 20:23:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-23 20:23:03 +0000 |
commit | f5c863cf97ea11876acad3c46fffca23685698aa (patch) | |
tree | 5537f5c843602f136f6eb1835d8679c9ae67009e /src/tls/tls_session_key.cpp | |
parent | 61d461d0a5fb63c3aee906c76b4aefe3335a7591 (diff) |
Initial hooks for session resumption
Diffstat (limited to 'src/tls/tls_session_key.cpp')
-rw-r--r-- | src/tls/tls_session_key.cpp | 59 |
1 files changed, 2 insertions, 57 deletions
diff --git a/src/tls/tls_session_key.cpp b/src/tls/tls_session_key.cpp index 7c75d1758..865cc0b80 100644 --- a/src/tls/tls_session_key.cpp +++ b/src/tls/tls_session_key.cpp @@ -13,62 +13,6 @@ namespace Botan { /** -* Return the client cipher key -*/ -SymmetricKey SessionKeys::client_cipher_key() const - { - return c_cipher; - } - -/** -* Return the server cipher key -*/ -SymmetricKey SessionKeys::server_cipher_key() const - { - return s_cipher; - } - -/** -* Return the client MAC key -*/ -SymmetricKey SessionKeys::client_mac_key() const - { - return c_mac; - } - -/** -* Return the server MAC key -*/ -SymmetricKey SessionKeys::server_mac_key() const - { - return s_mac; - } - -/** -* Return the client cipher IV -*/ -InitializationVector SessionKeys::client_iv() const - { - return c_iv; - } - -/** -* Return the server cipher IV -*/ -InitializationVector SessionKeys::server_iv() const - { - return s_iv; - } - -/** -* Return the TLS master secret -*/ -SecureVector<byte> SessionKeys::master_secret() const - { - return master_sec; - } - -/** * Generate SSLv3 session keys */ SymmetricKey SessionKeys::ssl3_keygen(size_t prf_gen, @@ -126,7 +70,8 @@ SymmetricKey SessionKeys::tls1_keygen(size_t prf_gen, /** * SessionKeys Constructor */ -SessionKeys::SessionKeys(const CipherSuite& suite, Version_Code version, +SessionKeys::SessionKeys(const CipherSuite& suite, + Version_Code version, const MemoryRegion<byte>& pre_master_secret, const MemoryRegion<byte>& c_random, const MemoryRegion<byte>& s_random) |