diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-09-11 11:54:39 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-09-11 11:54:39 +0700 |
commit | 5e4ffd78e073bf15b255c1465fa211a13105b65c (patch) | |
tree | 7d3d23488573a45cb31dd3477ee9995b49523f2c /crypto/src/math/raw/Nat576.cs | |
parent | Further Divsteps30 improvement (diff) | |
download | BouncyCastle.NET-ed25519-5e4ffd78e073bf15b255c1465fa211a13105b65c.tar.xz |
Fixed loop count for BigInteger conversion
- remove length-specific variants of FromBigInteger
Diffstat (limited to '')
-rw-r--r-- | crypto/src/math/raw/Nat576.cs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crypto/src/math/raw/Nat576.cs b/crypto/src/math/raw/Nat576.cs index 14279b61a..174d52bcf 100644 --- a/crypto/src/math/raw/Nat576.cs +++ b/crypto/src/math/raw/Nat576.cs @@ -55,21 +55,6 @@ namespace Org.BouncyCastle.Math.Raw return true; } - public static ulong[] FromBigInteger64(BigInteger x) - { - if (x.SignValue < 0 || x.BitLength > 576) - 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 bool IsOne64(ulong[] x) { if (x[0] != 1UL) |