summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-09-11 13:12:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-09-11 13:12:56 +0700
commitad2f7b82aa3e42275e16134b34eabf2eccc3968f (patch)
tree6336bcec9e743fa2a6cf60443dda66ba443a3cf6 /crypto
parentAdd another variant (diff)
downloadBouncyCastle.NET-ed25519-ad2f7b82aa3e42275e16134b34eabf2eccc3968f.tar.xz
No need for Obsolete in internal class
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/math/raw/Mod.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/crypto/src/math/raw/Mod.cs b/crypto/src/math/raw/Mod.cs
index a1eeaa9b7..41977f9d8 100644
--- a/crypto/src/math/raw/Mod.cs
+++ b/crypto/src/math/raw/Mod.cs
@@ -19,17 +19,6 @@ namespace Org.BouncyCastle.Math.Raw
         private const int M30 = 0x3FFFFFFF;
         private const ulong M32UL = 0xFFFFFFFFUL;
 
-        [Obsolete("Will be removed")]
-        public static void Add(uint[] p, uint[] x, uint[] y, uint[] z)
-        {
-            int len = p.Length;
-            uint c = Nat.Add(len, x, y, z);
-            if (c != 0)
-            {
-                Nat.SubFrom(len, p, z);
-            }
-        }
-
         public static void CheckedModOddInverse(uint[] m, uint[] x, uint[] z)
         {
             if (0 == ModOddInverse(m, x, z))
@@ -56,12 +45,6 @@ namespace Org.BouncyCastle.Math.Raw
             return x;
         }
 
-        [Obsolete("Use 'CheckedModOddInverseVar' instead")]
-        public static void Invert(uint[] m, uint[] x, uint[] z)
-        {
-            CheckedModOddInverseVar(m, x, z);
-        }
-
         public static uint ModOddInverse(uint[] m, uint[] x, uint[] z)
         {
             int len32 = m.Length;
@@ -217,17 +200,6 @@ namespace Org.BouncyCastle.Math.Raw
             return s;
         }
 
-        [Obsolete("Will be removed")]
-        public static void Subtract(uint[] p, uint[] x, uint[] y, uint[] z)
-        {
-            int len = p.Length;
-            int c = Nat.Sub(len, x, y, z);
-            if (c != 0)
-            {
-                Nat.AddTo(len, p, z);
-            }
-        }
-
         private static void CNegate30(int len, int cond, int[] D)
         {
             Debug.Assert(len > 0);