diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-03 21:11:12 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-03 21:11:12 +0700 |
commit | 2341ac87e251e4c23c6cebdba277b518d18fdd11 (patch) | |
tree | 42616bd14605c77b50df9195eabb3099ccf8651a /crypto/src/math/ec/custom/sec/SecP224K1Field.cs | |
parent | Share single temp variable across calls in Sqrt() (diff) | |
download | BouncyCastle.NET-ed25519-2341ac87e251e4c23c6cebdba277b518d18fdd11.tar.xz |
Refactoring in the Nat* classes and some new method variations
Improved reduction in some fields
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP224K1Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP224K1Field.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP224K1Field.cs b/crypto/src/math/ec/custom/sec/SecP224K1Field.cs index dd754e80e..13fb4e557 100644 --- a/crypto/src/math/ec/custom/sec/SecP224K1Field.cs +++ b/crypto/src/math/ec/custom/sec/SecP224K1Field.cs @@ -48,7 +48,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec uint[] z = Nat224.FromBigInteger(x); if (z[6] == P6 && Nat224.Gte(z, P)) { - Nat224.AddDWord(PInv, z, 0); + Nat224.SubFrom(P, z); } return z; } |