diff options
author | René Korthaus <[email protected]> | 2016-10-18 09:54:45 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-10-19 09:13:36 +0200 |
commit | 47532b63e947e020df15a03d91f9d67657cd11dd (patch) | |
tree | 38adf81ddad33192a13df060d24b3a0c7f2aab4d /src/lib/tls/tls_session_key.h | |
parent | 446f2a0289cca0de11e748e73071a39c06940239 (diff) |
Improve tls doxygen [ci skip]
Diffstat (limited to 'src/lib/tls/tls_session_key.h')
-rw-r--r-- | src/lib/tls/tls_session_key.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/tls/tls_session_key.h b/src/lib/tls/tls_session_key.h index 2ea18d636..1faee7801 100644 --- a/src/lib/tls/tls_session_key.h +++ b/src/lib/tls/tls_session_key.h @@ -20,19 +20,48 @@ namespace TLS { class Session_Keys { public: + /** + * @return client encipherment key + */ const SymmetricKey& client_cipher_key() const { return m_c_cipher; } + + /** + * @return client encipherment key + */ const SymmetricKey& server_cipher_key() const { return m_s_cipher; } + /** + * @return client MAC key + */ const SymmetricKey& client_mac_key() const { return m_c_mac; } + + /** + * @return server MAC key + */ const SymmetricKey& server_mac_key() const { return m_s_mac; } + /** + * @return client IV + */ const InitializationVector& client_iv() const { return m_c_iv; } + + /** + * @return server IV + */ const InitializationVector& server_iv() const { return m_s_iv; } + /** + * @return TLS master secret + */ const secure_vector<byte>& master_secret() const { return m_master_sec; } Session_Keys() {} + /** + * @param state state the handshake state + * @param pre_master the pre-master secret + * @param resuming whether this TLS session is resumed + */ Session_Keys(const class Handshake_State* state, const secure_vector<byte>& pre_master, bool resuming); |