diff options
author | David Hook <dgh@bouncycastle.org> | 2017-07-06 10:38:34 +1000 |
---|---|---|
committer | David Hook <dgh@bouncycastle.org> | 2017-07-06 10:38:34 +1000 |
commit | d09b1726efd194b28fba15a9833170d7077abe23 (patch) | |
tree | 17319528dbcdf8afe60a0fa7a638efc89cf39c94 /crypto/src/crypto/digests/DSTU7564Digest.cs | |
parent | Merge branch 'master' of bcgit@git.bouncycastle.org:bc-csharp.git (diff) | |
download | BouncyCastle.NET-ed25519-d09b1726efd194b28fba15a9833170d7077abe23.tar.xz |
added missing null check
Diffstat (limited to '')
-rw-r--r-- | crypto/src/crypto/digests/DSTU7564Digest.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/src/crypto/digests/DSTU7564Digest.cs b/crypto/src/crypto/digests/DSTU7564Digest.cs index 12057b146..9de41dd6b 100644 --- a/crypto/src/crypto/digests/DSTU7564Digest.cs +++ b/crypto/src/crypto/digests/DSTU7564Digest.cs @@ -282,7 +282,11 @@ namespace Org.BouncyCastle.Crypto.Digests bufOff = 0; Arrays.Fill(buf, (byte)0); - Arrays.Fill(padded_, (byte)0); + + if (padded_ != null) + { + Arrays.Fill(padded_, (byte)0); + } } public int GetDigestSize() |