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>2014-04-04 11:54:57 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-04-04 11:54:57 +0400
commit8d1167fac5920abc218a6bfa9f1ebc263462f8b3 (patch)
treefae818f9daee09a3ea3cfb93406ec027b2185085 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
parent9c9a768735900610a339318bf38267c908fe8dd5 (diff)
Use the TLS 1.0 PRF for the random block
Remove redundant Mac.init calls
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
index d6d6a8d9..c78cb95c 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
@@ -46,7 +46,8 @@ public class DTLSServerProtocol
SecurityParameters securityParameters = new SecurityParameters();
securityParameters.entity = ConnectionEnd.server;
- securityParameters.serverRandom = TlsProtocol.createRandomBlock(server.shouldUseGMTUnixTime(), secureRandom);
+ securityParameters.serverRandom = TlsProtocol.createRandomBlock(server.shouldUseGMTUnixTime(), secureRandom,
+ ExporterLabel.server_random);
ServerHandshakeState state = new ServerHandshakeState();
state.server = server;