summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-13 10:43:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-13 10:43:56 +0700
commita50bfbc38837a8538a8a1c67c98b4fc122db546a (patch)
treeadc384f9afb377507fac5386fdb11bb57b75b1bf
parentRefactoring around KeyParameter (diff)
downloadBouncyCastle.NET-ed25519-a50bfbc38837a8538a8a1c67c98b4fc122db546a.tar.xz
Fix ParallelHash copy constructor
-rw-r--r--crypto/src/crypto/digests/ParallelHash.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/crypto/digests/ParallelHash.cs b/crypto/src/crypto/digests/ParallelHash.cs

index 541d7f951..1d209a771 100644 --- a/crypto/src/crypto/digests/ParallelHash.cs +++ b/crypto/src/crypto/digests/ParallelHash.cs
@@ -63,6 +63,10 @@ namespace Org.BouncyCastle.Crypto.Digests this.outputLength = source.outputLength; this.buffer = Arrays.Clone(source.buffer); this.compressorBuffer = Arrays.Clone(source.compressorBuffer); + + this.firstOutput = source.firstOutput; + this.nCount = source.nCount; + this.bufOff = source.bufOff; } public virtual string AlgorithmName