Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-06-20 10:18:21 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-20 10:18:21 +0400
commitdfbefd88dda8b0c74a2eecf416905d02d5fccc52 (patch)
tree8ff5ce6b1a9516a26bf5da4a88ba389cc1e38d59 /core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java
parenta413714aeed3598954051e64652ad8aee0fdc27c (diff)
Formatting
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java
index d5b2b98e..d1f6986b 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsNullCipher.java
@@ -26,7 +26,6 @@ public class TlsNullCipher
public TlsNullCipher(TlsContext context, Digest clientWriteDigest, Digest serverWriteDigest)
throws IOException
{
-
if ((clientWriteDigest == null) != (serverWriteDigest == null))
{
throw new TlsFatalAlert(AlertDescription.internal_error);
@@ -38,7 +37,6 @@ public class TlsNullCipher
if (clientWriteDigest != null)
{
-
int key_block_size = clientWriteDigest.getDigestSize()
+ serverWriteDigest.getDigestSize();
byte[] key_block = TlsUtils.calculateKeyBlock(context, key_block_size);
@@ -84,7 +82,6 @@ public class TlsNullCipher
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)
throws IOException
{
-
if (writeMac == null)
{
return Arrays.copyOfRange(plaintext, offset, offset + len);
@@ -100,7 +97,6 @@ public class TlsNullCipher
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len)
throws IOException
{
-
if (readMac == null)
{
return Arrays.copyOfRange(ciphertext, offset, offset + len);