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 15:12:59 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-19 15:12:59 +0400
commit14fa6ce5353addb53e5199c4de8e1cc307ceb9b1 (patch)
tree8aaa616d0cd51aff25630c1c08c0fbef8bba6e29 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
parent839f4b348a9e576992a37b8e68caa368460a6e36 (diff)
Use explicit DigitallySigned struct instead of simple signature
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.java4
1 files changed, 2 insertions, 2 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 4b4294e4..ed8c023b 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
@@ -465,7 +465,7 @@ public class DTLSServerProtocol
{
ByteArrayInputStream buf = new ByteArrayInputStream(body);
- byte[] clientCertificateSignature = TlsUtils.readOpaque16(buf);
+ DigitallySigned clientCertificateVerify = DigitallySigned.parse(state.serverContext, buf);
TlsProtocol.assertEmpty(buf);
@@ -479,7 +479,7 @@ public class DTLSServerProtocol
SubjectPublicKeyInfo keyInfo = x509Cert.getSubjectPublicKeyInfo();
AsymmetricKeyParameter publicKey = PublicKeyFactory.createKey(keyInfo);
- tlsSigner.verifyRawSignature(clientCertificateSignature, publicKey, certificateVerifyHash);
+ tlsSigner.verifyRawSignature(clientCertificateVerify.getSignature(), publicKey, certificateVerifyHash);
}
catch (Exception e)
{