summary refs log tree commit diff
path: root/crypto/src/math/raw/Nat.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-09-21 19:46:52 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-09-21 19:46:52 +0700
commit661a878a61a8734ef71cbd81da4f53f62f513212 (patch)
tree9f58350da0f2f5104d131c14b564cda3a5f9a653 /crypto/src/math/raw/Nat.cs
parentNo need for Obsolete in internal class (diff)
downloadBouncyCastle.NET-ed25519-661a878a61a8734ef71cbd81da4f53f62f513212.tar.xz
ECC: Binary field perf. opt.
Diffstat (limited to '')
-rw-r--r--crypto/src/math/raw/Nat.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/math/raw/Nat.cs b/crypto/src/math/raw/Nat.cs
index d67de0a5c..effe46454 100644
--- a/crypto/src/math/raw/Nat.cs
+++ b/crypto/src/math/raw/Nat.cs
@@ -1406,5 +1406,13 @@ namespace Org.BouncyCastle.Math.Raw
                 z[i] = 0;
             }
         }
+
+        public static void Zero64(int len, ulong[] z)
+        {
+            for (int i = 0; i < len; ++i)
+            {
+                z[i] = 0UL;
+            }
+        }
     }
 }