aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_ciphersuite.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-12-31 14:30:32 +0000
committerlloyd <[email protected]>2014-12-31 14:30:32 +0000
commitde3fb4a8aa5957a37bae11d3662638f79551f826 (patch)
tree1a82d6b50bb7dd01a2d5e0bba772a980b0ba345f /src/lib/tls/tls_ciphersuite.h
parent205bbde9dc315562f11c16e15c1787d84f0d0185 (diff)
Add ChaCha20Poly1305 TLS ciphersuites compatible with Google's implementation
Diffstat (limited to 'src/lib/tls/tls_ciphersuite.h')
-rw-r--r--src/lib/tls/tls_ciphersuite.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/tls/tls_ciphersuite.h b/src/lib/tls/tls_ciphersuite.h
index e92eafd5f..bff5b0d9d 100644
--- a/src/lib/tls/tls_ciphersuite.h
+++ b/src/lib/tls/tls_ciphersuite.h
@@ -99,9 +99,9 @@ class BOTAN_DLL Ciphersuite
*/
size_t cipher_keylen() const { return m_cipher_keylen; }
- size_t explicit_nonce_bytes() const { return m_explicit_nonce_bytes; }
+ size_t nonce_bytes_from_record() const { return m_nonce_bytes_from_record; }
- size_t implicit_nonce_bytes() const { return m_implicit_nonce_bytes; }
+ size_t nonce_bytes_from_handshake() const { return m_nonce_bytes_from_handshake; }
size_t mac_keylen() const { return m_mac_keylen; }
@@ -119,8 +119,8 @@ class BOTAN_DLL Ciphersuite
const char* kex_algo,
const char* cipher_algo,
size_t cipher_keylen,
- size_t explicit_nonce_bytes,
- size_t implicit_nonce_bytes,
+ size_t nonce_bytes_from_handshake,
+ size_t nonce_bytes_from_record,
const char* mac_algo,
size_t mac_keylen,
const char* prf_algo = "");
@@ -133,7 +133,8 @@ class BOTAN_DLL Ciphersuite
std::string m_cipher_algo;
size_t m_cipher_keylen = 0;
- size_t m_explicit_nonce_bytes = 0, m_implicit_nonce_bytes = 0;
+ size_t m_nonce_bytes_from_handshake = 0;
+ size_t m_nonce_bytes_from_record = 0;
std::string m_mac_algo;
size_t m_mac_keylen = 0;