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-19 09:39:23 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-19 09:39:23 +0400
commit83462c7c8eecffa8138e47b3c2b7fdbfc001be5e (patch)
tree997d9b91bf65670bf340d121def28714d033b3a6 /core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java
parentd26e1231ef42437fa1d52bd8a3529efa22bade9c (diff)
Formatting
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java b/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java
index 3a31c201..648323f2 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/RecordStream.java
@@ -12,7 +12,6 @@ import org.bouncycastle.crypto.Digest;
*/
class RecordStream
{
-
private static int PLAINTEXT_LIMIT = (1 << 14);
private static int COMPRESSED_LIMIT = PLAINTEXT_LIMIT + 1024;
private static int CIPHERTEXT_LIMIT = COMPRESSED_LIMIT + 1024;
@@ -126,7 +125,6 @@ class RecordStream
public void readRecord()
throws IOException
{
-
short type = TlsUtils.readUint8(input);
// TODO In earlier RFCs, it was "SHOULD ignore"; should this be version-dependent?
@@ -165,7 +163,6 @@ class RecordStream
protected byte[] decodeAndVerify(short type, InputStream input, int len)
throws IOException
{
-
checkLength(len, CIPHERTEXT_LIMIT, AlertDescription.record_overflow);
byte[] buf = TlsUtils.readFully(len, input);
@@ -198,7 +195,6 @@ class RecordStream
protected void writeRecord(short type, byte[] plaintext, int plaintextOffset, int plaintextLength)
throws IOException
{
-
/*
* RFC 5264 6. Implementations MUST NOT send record types not defined in this document
* unless negotiated by some extension.
@@ -332,7 +328,6 @@ class RecordStream
private static void checkType(short type, short alertDescription)
throws IOException
{
-
switch (type)
{
case ContentType.change_cipher_spec: