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-21 08:51:54 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-21 08:51:54 +0400
commit36fc18697acc0b4a72a35eaa5637d3e69492f4e4 (patch)
treea99b9050d282d948eff98b2f1750215d4892d0c6 /core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java
parent7c8135baabfe8d14b48bfb44d3fb8740bdde8fb2 (diff)
Don't need the prfAlgorithm field
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java b/core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java
index c2dba4eb..695f870d 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DeferredHash.java
@@ -13,7 +13,6 @@ class DeferredHash
protected TlsContext context;
private DigestInputBuffer buf = new DigestInputBuffer();
- private int prfAlgorithm = -1;
private Digest hash = null;
DeferredHash()
@@ -48,7 +47,6 @@ class DeferredHash
return tlsPRFHash.commit();
}
- this.prfAlgorithm = prfAlgorithm;
this.hash = prfHash;
this.buf = null;
@@ -58,6 +56,7 @@ class DeferredHash
public TlsHandshakeHash fork()
{
checkHash();
+ int prfAlgorithm = context.getSecurityParameters().getPrfAlgorithm();
return new DeferredHash(TlsUtils.clonePRFHash(prfAlgorithm, hash));
}