summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecT233K1Point.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-12-03 17:25:25 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-12-03 17:25:25 +0700
commite576a376b11268ca954b95e1d7e451e283c2ba15 (patch)
tree60ca57e1458c1b6c37a8ffdda3b0d42c551a4984 /crypto/src/math/ec/custom/sec/SecT233K1Point.cs
parentMissing file from commit (diff)
downloadBouncyCastle.NET-ed25519-e576a376b11268ca954b95e1d7e451e283c2ba15.tar.xz
Binary curve perf. opts.
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT233K1Point.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecT233K1Point.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT233K1Point.cs b/crypto/src/math/ec/custom/sec/SecT233K1Point.cs
index 0ed107d49..6599c1cc6 100644
--- a/crypto/src/math/ec/custom/sec/SecT233K1Point.cs
+++ b/crypto/src/math/ec/custom/sec/SecT233K1Point.cs
@@ -82,7 +82,11 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
             SecT233FieldElement L1 = (SecT233FieldElement)this.RawYCoord, Z1 = (SecT233FieldElement)this.RawZCoords[0];
             SecT233FieldElement L2 = (SecT233FieldElement)b.RawYCoord, Z2 = (SecT233FieldElement)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();