summary refs log tree commit diff
path: root/crypto/src/tls/TlsProtocol.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-26 17:00:38 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-26 17:00:38 +0700
commitcd51dffe999cf5e440e04970689e1cb10e623d98 (patch)
treeb2cdc426eee50a119ce8278dcb482adc6233eeaa /crypto/src/tls/TlsProtocol.cs
parentPSK binder based on explicit PRF hash (diff)
downloadBouncyCastle.NET-ed25519-cd51dffe999cf5e440e04970689e1cb10e623d98.tar.xz
ClientHello 'splitting' to handle PSK binders
Diffstat (limited to 'crypto/src/tls/TlsProtocol.cs')
-rw-r--r--crypto/src/tls/TlsProtocol.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsProtocol.cs b/crypto/src/tls/TlsProtocol.cs
index 044fca42d..d4960e3c8 100644
--- a/crypto/src/tls/TlsProtocol.cs
+++ b/crypto/src/tls/TlsProtocol.cs
@@ -947,11 +947,23 @@ namespace Org.BouncyCastle.Tls
             short type = TlsUtilities.ReadUint8(buf, off);
             switch (type)
             {
+            /*
+             * These message types aren't included in the transcript.
+             */
             case HandshakeType.hello_request:
             case HandshakeType.key_update:
             case HandshakeType.new_session_ticket:
                 break;
 
+            /*
+             * These message types are deferred to the writer to explicitly update the transcript.
+             */
+            case HandshakeType.client_hello:
+                break;
+
+            /*
+             * For all others we automatically update the transcript. 
+             */
             default:
             {
                 m_handshakeHash.Update(buf, off, len);