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-09-07 19:01:31 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-09-07 19:01:31 +0400
commit67cf7fb22fce753e1dd800da67fabef31bd6505d (patch)
tree2188ddc85c6fe01147ff88b8527b503f56e1babd /core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
parentbed5a843ca35a7df1420fd61072593324805561b (diff)
Use ExporterLabel constants
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.java6
1 files changed, 3 insertions, 3 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 fb1c0061..cf36f618 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
@@ -255,8 +255,8 @@ public class DTLSServerProtocol
}
// NOTE: Calculated exclusive of the actual Finished message from the client
- byte[] expectedClientVerifyData = TlsUtils.calculateVerifyData(state.serverContext, "client finished",
- handshake.getCurrentHash());
+ byte[] expectedClientVerifyData = TlsUtils.calculateVerifyData(state.serverContext,
+ ExporterLabel.client_finished, handshake.getCurrentHash());
processFinished(handshake.receiveMessageBody(HandshakeType.finished), expectedClientVerifyData);
if (state.expectSessionTicket)
@@ -267,7 +267,7 @@ public class DTLSServerProtocol
}
// NOTE: Calculated exclusive of the Finished message itself
- byte[] serverVerifyData = TlsUtils.calculateVerifyData(state.serverContext, "server finished",
+ byte[] serverVerifyData = TlsUtils.calculateVerifyData(state.serverContext, ExporterLabel.server_finished,
handshake.getCurrentHash());
handshake.sendMessage(HandshakeType.finished, serverVerifyData);