diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-13 10:43:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-13 10:43:56 +0700 |
commit | a50bfbc38837a8538a8a1c67c98b4fc122db546a (patch) | |
tree | adc384f9afb377507fac5386fdb11bb57b75b1bf /crypto | |
parent | Refactoring around KeyParameter (diff) | |
download | BouncyCastle.NET-ed25519-a50bfbc38837a8538a8a1c67c98b4fc122db546a.tar.xz |
Fix ParallelHash copy constructor
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/crypto/digests/ParallelHash.cs | 4 |
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 |