summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecT239K1Point.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT239K1Point.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecT239K1Point.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT239K1Point.cs b/crypto/src/math/ec/custom/sec/SecT239K1Point.cs
index a57519d2b..36056744a 100644
--- a/crypto/src/math/ec/custom/sec/SecT239K1Point.cs
+++ b/crypto/src/math/ec/custom/sec/SecT239K1Point.cs
@@ -82,7 +82,11 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
             SecT239FieldElement L1 = (SecT239FieldElement)this.RawYCoord, Z1 = (SecT239FieldElement)this.RawZCoords[0];
             SecT239FieldElement L2 = (SecT239FieldElement)b.RawYCoord, Z2 = (SecT239FieldElement)b.RawZCoords[0];
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+            Span<ulong> tt0 = stackalloc ulong[8];
+#else
             ulong[] tt0 = Nat256.CreateExt64();
+#endif
             ulong[] t1 = Nat256.Create64();
             ulong[] t2 = Nat256.Create64();
             ulong[] t3 = Nat256.Create64();