diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-09-17 07:29:06 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-09-17 07:29:06 +0400 |
commit | e12184a52a16f847f622d335d4301173f1b41d9a (patch) | |
tree | 1ae906b72f6c273de42dc00ed8b748c4a02df8a3 /core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java | |
parent | f7a703514cfc5ce72da63747193d5efb7005e3ae (diff) |
Refactor to use TlsUtils.isSSL
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java index f9a90698..e720d08d 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java @@ -137,7 +137,7 @@ public class TlsMac * ...but ensure a constant number of complete digest blocks are processed (as many as would * be needed for 'fullLength' bytes of input). */ - int headerLength = context.getServerVersion().isSSL() ? 11 : 13; + int headerLength = TlsUtils.isSSL(context) ? 11 : 13; // How many extra full blocks do we need to calculate? int extra = getDigestBlockCount(headerLength + fullLength) - getDigestBlockCount(headerLength + length); |