diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-16 19:50:01 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-16 19:50:01 +0700 |
commit | e1589b91508d9c809052676e3b12a08aaf6fea26 (patch) | |
tree | 05907312b16f6b7d033f7082fe88b4f1d2d14966 /crypto/src | |
parent | Perf. opts. in CipherStream (diff) | |
download | BouncyCastle.NET-ed25519-e1589b91508d9c809052676e3b12a08aaf6fea26.tar.xz |
Refactoring in Tls.Crypto.Impl
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/tls/crypto/impl/TlsNullCipher.cs | 1 | ||||
-rw-r--r-- | crypto/src/tls/crypto/impl/TlsSuiteHmac.cs | 2 |
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; } |