summary refs log tree commit diff
path: root/crypto/src/tls/TlsServerProtocol.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-27 19:17:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-27 19:17:06 +0700
commit6ad4f3694b7f8c54b91270d6b81667825070a708 (patch)
treec50417972413b56a959e38c2263b10299943331f /crypto/src/tls/TlsServerProtocol.cs
parentAdd pre_shared_key to ClientHello (diff)
downloadBouncyCastle.NET-ed25519-6ad4f3694b7f8c54b91270d6b81667825070a708.tar.xz
Seal handshake hash externally
Diffstat (limited to '')
-rw-r--r--crypto/src/tls/TlsServerProtocol.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsServerProtocol.cs b/crypto/src/tls/TlsServerProtocol.cs
index 89365afad..1320cf5fa 100644
--- a/crypto/src/tls/TlsServerProtocol.cs
+++ b/crypto/src/tls/TlsServerProtocol.cs
@@ -874,6 +874,8 @@ namespace Org.BouncyCastle.Tls
 
                     if (TlsUtilities.IsTlsV13(securityParameters.NegotiatedVersion))
                     {
+                        m_handshakeHash.SealHashAlgorithms();
+
                         if (serverHello.IsHelloRetryRequest())
                         {
                             TlsUtilities.AdjustTranscriptForRetry(m_handshakeHash);