summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2017-07-06 10:38:34 +1000
committerDavid Hook <dgh@bouncycastle.org>2017-07-06 10:38:34 +1000
commitd09b1726efd194b28fba15a9833170d7077abe23 (patch)
tree17319528dbcdf8afe60a0fa7a638efc89cf39c94 /crypto
parentMerge branch 'master' of bcgit@git.bouncycastle.org:bc-csharp.git (diff)
downloadBouncyCastle.NET-ed25519-d09b1726efd194b28fba15a9833170d7077abe23.tar.xz
added missing null check
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/crypto/digests/DSTU7564Digest.cs6
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()