From a50bfbc38837a8538a8a1c67c98b4fc122db546a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 13 Apr 2023 10:43:56 +0700 Subject: Fix ParallelHash copy constructor --- crypto/src/crypto/digests/ParallelHash.cs | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit 1.5.1