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