diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-09 14:49:35 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-09 14:49:35 +0700 |
commit | 92c5aa785014f45b0a974e18382a1c1dae9176f1 (patch) | |
tree | 510b5eb1d9f4ea94fd238d7967e8a269d00b7f8d | |
parent | Add FromUnsignedByteArray methods (diff) | |
download | BouncyCastle.NET-ed25519-92c5aa785014f45b0a974e18382a1c1dae9176f1.tar.xz |
Make classes static
-rw-r--r-- | crypto/src/math/raw/Interleave.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat128.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat160.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat192.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat224.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat256.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat320.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat384.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat448.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat512.cs | 2 | ||||
-rw-r--r-- | crypto/src/math/raw/Nat576.cs | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/crypto/src/math/raw/Interleave.cs b/crypto/src/math/raw/Interleave.cs index 196f7c9b5..17351d002 100644 --- a/crypto/src/math/raw/Interleave.cs +++ b/crypto/src/math/raw/Interleave.cs @@ -6,7 +6,7 @@ using System.Runtime.Intrinsics.X86; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Interleave + internal static class Interleave { private const ulong M32 = 0x55555555UL; private const ulong M64 = 0x5555555555555555UL; diff --git a/crypto/src/math/raw/Nat.cs b/crypto/src/math/raw/Nat.cs index fa76f305e..1d08b6d92 100644 --- a/crypto/src/math/raw/Nat.cs +++ b/crypto/src/math/raw/Nat.cs @@ -8,7 +8,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat + internal static class Nat { private const ulong M = 0xFFFFFFFFUL; diff --git a/crypto/src/math/raw/Nat128.cs b/crypto/src/math/raw/Nat128.cs index 0705844e7..d0cdc9985 100644 --- a/crypto/src/math/raw/Nat128.cs +++ b/crypto/src/math/raw/Nat128.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat128 + internal static class Nat128 { private const ulong M = 0xFFFFFFFFUL; diff --git a/crypto/src/math/raw/Nat160.cs b/crypto/src/math/raw/Nat160.cs index f862700b1..85e4aba58 100644 --- a/crypto/src/math/raw/Nat160.cs +++ b/crypto/src/math/raw/Nat160.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat160 + internal static class Nat160 { private const ulong M = 0xFFFFFFFFUL; diff --git a/crypto/src/math/raw/Nat192.cs b/crypto/src/math/raw/Nat192.cs index 7c36b21cf..1980a47c6 100644 --- a/crypto/src/math/raw/Nat192.cs +++ b/crypto/src/math/raw/Nat192.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat192 + internal static class Nat192 { private const ulong M = 0xFFFFFFFFUL; diff --git a/crypto/src/math/raw/Nat224.cs b/crypto/src/math/raw/Nat224.cs index 8393dc763..2182261ae 100644 --- a/crypto/src/math/raw/Nat224.cs +++ b/crypto/src/math/raw/Nat224.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat224 + internal static class Nat224 { private const ulong M = 0xFFFFFFFFUL; diff --git a/crypto/src/math/raw/Nat256.cs b/crypto/src/math/raw/Nat256.cs index edf793d3d..59039d3fa 100644 --- a/crypto/src/math/raw/Nat256.cs +++ b/crypto/src/math/raw/Nat256.cs @@ -11,7 +11,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat256 + internal static class Nat256 { private const ulong M = 0xFFFFFFFFUL; diff --git a/crypto/src/math/raw/Nat320.cs b/crypto/src/math/raw/Nat320.cs index 06f7b58cc..d52389cb1 100644 --- a/crypto/src/math/raw/Nat320.cs +++ b/crypto/src/math/raw/Nat320.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat320 + internal static class Nat320 { public static void Copy64(ulong[] x, ulong[] z) { diff --git a/crypto/src/math/raw/Nat384.cs b/crypto/src/math/raw/Nat384.cs index ed1c47e8c..2373d4610 100644 --- a/crypto/src/math/raw/Nat384.cs +++ b/crypto/src/math/raw/Nat384.cs @@ -3,7 +3,7 @@ using System.Diagnostics; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat384 + internal static class Nat384 { public static void Mul(uint[] x, uint[] y, uint[] zz) { diff --git a/crypto/src/math/raw/Nat448.cs b/crypto/src/math/raw/Nat448.cs index 2da03bf0f..ac29ca9af 100644 --- a/crypto/src/math/raw/Nat448.cs +++ b/crypto/src/math/raw/Nat448.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat448 + internal static class Nat448 { public static void Copy64(ulong[] x, ulong[] z) { diff --git a/crypto/src/math/raw/Nat512.cs b/crypto/src/math/raw/Nat512.cs index f8a34027f..56fa9a2c9 100644 --- a/crypto/src/math/raw/Nat512.cs +++ b/crypto/src/math/raw/Nat512.cs @@ -8,7 +8,7 @@ using System.Runtime.Intrinsics.X86; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat512 + internal static class Nat512 { public static void Mul(uint[] x, uint[] y, uint[] zz) { diff --git a/crypto/src/math/raw/Nat576.cs b/crypto/src/math/raw/Nat576.cs index 3525a0f05..73b959366 100644 --- a/crypto/src/math/raw/Nat576.cs +++ b/crypto/src/math/raw/Nat576.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { - internal abstract class Nat576 + internal static class Nat576 { public static void Copy64(ulong[] x, ulong[] z) { |