diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-09-21 19:46:52 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-09-21 19:46:52 +0700 |
commit | 661a878a61a8734ef71cbd81da4f53f62f513212 (patch) | |
tree | 9f58350da0f2f5104d131c14b564cda3a5f9a653 /crypto/src/math/raw/Nat.cs | |
parent | No need for Obsolete in internal class (diff) | |
download | BouncyCastle.NET-ed25519-661a878a61a8734ef71cbd81da4f53f62f513212.tar.xz |
ECC: Binary field perf. opt.
Diffstat (limited to '')
-rw-r--r-- | crypto/src/math/raw/Nat.cs | 8 |
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; + } + } } } |