diff options
Diffstat (limited to 'crypto/src/math/raw/Nat192.cs')
-rw-r--r-- | crypto/src/math/raw/Nat192.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/crypto/src/math/raw/Nat192.cs b/crypto/src/math/raw/Nat192.cs index 1311dee04..752290747 100644 --- a/crypto/src/math/raw/Nat192.cs +++ b/crypto/src/math/raw/Nat192.cs @@ -225,36 +225,6 @@ namespace Org.BouncyCastle.Math.Raw return true; } - public static uint[] FromBigInteger(BigInteger x) - { - if (x.SignValue < 0 || x.BitLength > 192) - throw new ArgumentException(); - - uint[] z = Create(); - int i = 0; - while (x.SignValue != 0) - { - z[i++] = (uint)x.IntValue; - x = x.ShiftRight(32); - } - return z; - } - - public static ulong[] FromBigInteger64(BigInteger x) - { - if (x.SignValue < 0 || x.BitLength > 192) - throw new ArgumentException(); - - ulong[] z = Create64(); - int i = 0; - while (x.SignValue != 0) - { - z[i++] = (ulong)x.LongValue; - x = x.ShiftRight(64); - } - return z; - } - public static uint GetBit(uint[] x, int bit) { if (bit == 0) |