summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT571K1Point.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecT571K1Point.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT571K1Point.cs b/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
index 95af0629f..0156c6283 100644
--- a/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
+++ b/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
@@ -176,7 +176,11 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
                     SecT571Field.MultiplyPrecomp(Z3.x, Z2Precomp, Z3.x);
                 }
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+                Span<ulong> tt = stackalloc ulong[18];
+#else
                 ulong[] tt = Nat576.CreateExt64();
+#endif
 
                 SecT571Field.Add(AU2, B, t4);
                 SecT571Field.SquareExt(t4, tt);