summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs

index adfc89e9d..409352586 100644 --- a/crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs +++ b/crypto/src/math/ec/custom/sec/SecP521R1FieldElement.cs
@@ -133,11 +133,12 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (Nat.IsZero(17, x1) || Nat.IsOne(17, x1)) return this; + uint[] tt0 = Nat.Create(33); uint[] t1 = Nat.Create(17); uint[] t2 = Nat.Create(17); - SecP521R1Field.SquareN(x1, 519, t1); - SecP521R1Field.Square(t1, t2); + SecP521R1Field.SquareN(x1, 519, t1, tt0); + SecP521R1Field.Square(t1, t2, tt0); return Nat.Eq(17, x1, t2) ? new SecP521R1FieldElement(t1) : null; }