Skip to content

Commit ad2f7b8

Browse files
committed
No need for Obsolete in internal class
1 parent dea84c9 commit ad2f7b8

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

crypto/src/math/raw/Mod.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ internal abstract class Mod
1919
private const int M30 = 0x3FFFFFFF;
2020
private const ulong M32UL = 0xFFFFFFFFUL;
2121

22-
[Obsolete("Will be removed")]
23-
public static void Add(uint[] p, uint[] x, uint[] y, uint[] z)
24-
{
25-
int len = p.Length;
26-
uint c = Nat.Add(len, x, y, z);
27-
if (c != 0)
28-
{
29-
Nat.SubFrom(len, p, z);
30-
}
31-
}
32-
3322
public static void CheckedModOddInverse(uint[] m, uint[] x, uint[] z)
3423
{
3524
if (0 == ModOddInverse(m, x, z))
@@ -56,12 +45,6 @@ public static uint Inverse32(uint d)
5645
return x;
5746
}
5847

59-
[Obsolete("Use 'CheckedModOddInverseVar' instead")]
60-
public static void Invert(uint[] m, uint[] x, uint[] z)
61-
{
62-
CheckedModOddInverseVar(m, x, z);
63-
}
64-
6548
public static uint ModOddInverse(uint[] m, uint[] x, uint[] z)
6649
{
6750
int len32 = m.Length;
@@ -217,17 +200,6 @@ public static uint[] Random(uint[] p)
217200
return s;
218201
}
219202

220-
[Obsolete("Will be removed")]
221-
public static void Subtract(uint[] p, uint[] x, uint[] y, uint[] z)
222-
{
223-
int len = p.Length;
224-
int c = Nat.Sub(len, x, y, z);
225-
if (c != 0)
226-
{
227-
Nat.AddTo(len, p, z);
228-
}
229-
}
230-
231203
private static void CNegate30(int len, int cond, int[] D)
232204
{
233205
Debug.Assert(len > 0);

0 commit comments

Comments
 (0)