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-16 12:22:30 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-16 12:22:30 +0400
commitd73a4d34084ba2dcc69591e96e38f907b15df8b1 (patch)
treed01a105403148497772d559299c1992e0b2f5270 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java
parent5a235c6e8ad4abda6110e3e095426309efd7f063 (diff)
Formatting
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java
index 2789b22d..680ac260 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSProtocol.java
@@ -10,12 +10,10 @@ import org.bouncycastle.util.Arrays;
public abstract class DTLSProtocol
{
-
protected final SecureRandom secureRandom;
protected DTLSProtocol(SecureRandom secureRandom)
{
-
if (secureRandom == null)
{
throw new IllegalArgumentException("'secureRandom' cannot be null");
@@ -27,7 +25,6 @@ public abstract class DTLSProtocol
protected void processFinished(byte[] body, byte[] expected_verify_data)
throws IOException
{
-
ByteArrayInputStream buf = new ByteArrayInputStream(body);
byte[] verify_data = TlsUtils.readFully(expected_verify_data.length, buf);
@@ -43,7 +40,6 @@ public abstract class DTLSProtocol
protected static byte[] generateCertificate(Certificate certificate)
throws IOException
{
-
ByteArrayOutputStream buf = new ByteArrayOutputStream();
certificate.encode(buf);
return buf.toByteArray();
@@ -52,7 +48,6 @@ public abstract class DTLSProtocol
protected static byte[] generateSupplementalData(Vector supplementalData)
throws IOException
{
-
ByteArrayOutputStream buf = new ByteArrayOutputStream();
TlsProtocol.writeSupplementalData(buf, supplementalData);
return buf.toByteArray();
@@ -61,7 +56,6 @@ public abstract class DTLSProtocol
protected static void validateSelectedCipherSuite(int selectedCipherSuite, short alertDescription)
throws IOException
{
-
switch (selectedCipherSuite)
{
case CipherSuite.TLS_RSA_EXPORT_WITH_RC4_40_MD5: