summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-05-16 19:50:01 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-05-16 19:50:01 +0700
commite1589b91508d9c809052676e3b12a08aaf6fea26 (patch)
tree05907312b16f6b7d033f7082fe88b4f1d2d14966 /crypto/src
parentPerf. opts. in CipherStream (diff)
downloadBouncyCastle.NET-ed25519-e1589b91508d9c809052676e3b12a08aaf6fea26.tar.xz
Refactoring in Tls.Crypto.Impl
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/tls/crypto/impl/TlsNullCipher.cs1
-rw-r--r--crypto/src/tls/crypto/impl/TlsSuiteHmac.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/tls/crypto/impl/TlsNullCipher.cs b/crypto/src/tls/crypto/impl/TlsNullCipher.cs
index fa40d7812..7c1bad6f7 100644
--- a/crypto/src/tls/crypto/impl/TlsNullCipher.cs
+++ b/crypto/src/tls/crypto/impl/TlsNullCipher.cs
@@ -9,6 +9,7 @@ namespace Org.BouncyCastle.Tls.Crypto.Impl
     public class TlsNullCipher
         : TlsCipher, TlsCipherExt
     {
+        // TODO[api] Remove (unused)
         protected readonly TlsCryptoParameters m_cryptoParams;
         protected readonly TlsSuiteHmac m_readMac, m_writeMac;
         protected readonly byte[] m_decryptConnectionID, m_encryptConnectionID;
diff --git a/crypto/src/tls/crypto/impl/TlsSuiteHmac.cs b/crypto/src/tls/crypto/impl/TlsSuiteHmac.cs
index 93f76a161..f008fc759 100644
--- a/crypto/src/tls/crypto/impl/TlsSuiteHmac.cs
+++ b/crypto/src/tls/crypto/impl/TlsSuiteHmac.cs
@@ -210,7 +210,7 @@ namespace Org.BouncyCastle.Tls.Crypto.Impl
 
         protected virtual int GetHeaderLength(byte[] connectionID)
         {
-            if (m_cryptoParams.ServerVersion.IsSsl)
+            if (TlsImplUtilities.IsSsl(m_cryptoParams))
             {
                 return 11;
             }