summary refs log tree commit diff
path: root/crypto/src/math/raw/Nat128.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/raw/Nat128.cs')
-rw-r--r--crypto/src/math/raw/Nat128.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/src/math/raw/Nat128.cs b/crypto/src/math/raw/Nat128.cs
index d336b320a..0705844e7 100644
--- a/crypto/src/math/raw/Nat128.cs
+++ b/crypto/src/math/raw/Nat128.cs
@@ -131,6 +131,14 @@ namespace Org.BouncyCastle.Math.Raw
             z[zOff + 1] = x[xOff + 1];
         }
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+        public static void Copy64(ReadOnlySpan<ulong> x, Span<ulong> z)
+        {
+            z[0] = x[0];
+            z[1] = x[1];
+        }
+#endif
+
         public static uint[] Create()
         {
             return new uint[4];
@@ -270,7 +278,11 @@ namespace Org.BouncyCastle.Math.Raw
             return true;
         }
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+        public static bool IsZero64(ReadOnlySpan<ulong> x)
+#else
         public static bool IsZero64(ulong[] x)
+#endif
         {
             for (int i = 0; i < 2; ++i)
             {