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/ec/custom/sec/SecP192R1Field.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 'crypto/src/math/ec/custom/sec/SecP192R1Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP192R1Field.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP192R1Field.cs b/crypto/src/math/ec/custom/sec/SecP192R1Field.cs index a4fb4bb76..10e204677 100644 --- a/crypto/src/math/ec/custom/sec/SecP192R1Field.cs +++ b/crypto/src/math/ec/custom/sec/SecP192R1Field.cs @@ -51,7 +51,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec public static uint[] FromBigInteger(BigInteger x) { - uint[] z = Nat192.FromBigInteger(x); + uint[] z = Nat.FromBigInteger(192, x); if (z[5] == P5 && Nat192.Gte(z, P)) { Nat192.SubFrom(P, z); |