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-16 11:35:01 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-04-16 11:35:01 +0400
commit3cc0a8966019034b52980d819eb8efef17a2bf23 (patch)
treeba1175ce9b3fca5329c4aec9a018a282d64bfcb8 /core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java
parent240b9c03eee7fa39d20018d82edc66d244b61d6f (diff)
Always create digests using TlsUtils.createHash
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java
index 452fbf90..9e81fe67 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsSRPKeyExchange.java
@@ -163,7 +163,7 @@ public class TlsSRPKeyExchange extends AbstractTlsKeyExchange
throw new TlsFatalAlert(AlertDescription.illegal_parameter);
}
- this.srpClient.init(N, g, new SHA1Digest(), context.getSecureRandom());
+ this.srpClient.init(N, g, TlsUtils.createHash(HashAlgorithm.sha1), context.getSecureRandom());
}
public void validateCertificateRequest(CertificateRequest certificateRequest) throws IOException