summary refs log tree commit diff
path: root/crypto/src/math/raw/Mod.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-10-30 23:51:14 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-10-30 23:51:14 +0700
commitfe8e8c3931ddca9b9b536f2d98084600557a44b3 (patch)
treef533333370c852fe8d9639886c4982f18816ac38 /crypto/src/math/raw/Mod.cs
parentsafegcd: more conservative final reduction (diff)
downloadBouncyCastle.NET-ed25519-fe8e8c3931ddca9b9b536f2d98084600557a44b3.tar.xz
Cleanup
Diffstat (limited to 'crypto/src/math/raw/Mod.cs')
-rw-r--r--crypto/src/math/raw/Mod.cs18
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/src/math/raw/Mod.cs b/crypto/src/math/raw/Mod.cs
index d9465aab6..a3435ea80 100644
--- a/crypto/src/math/raw/Mod.cs
+++ b/crypto/src/math/raw/Mod.cs
@@ -486,24 +486,6 @@ namespace Org.BouncyCastle.Math.Raw
             return true;
         }
 
-        //private static void Negate30(int len, int[] D)
-        //{
-        //    Debug.Assert(len > 0);
-        //    Debug.Assert(D.Length >= len);
-
-        //    int last = len - 1;
-        //    long cd = 0L;
-
-        //    for (int i = 0; i < last; ++i)
-        //    {
-        //        cd -= D[i];
-        //        D[i] = (int)cd & M30; cd >>= 30;
-        //    }
-
-        //    cd -= D[last];
-        //    D[last] = (int)cd;
-        //}
-
         private static int Negate30(int len30, int[] D)
         {
             Debug.Assert(len30 > 0);