summary refs log tree commit diff
path: root/crypto/src/math/raw/Nat448.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/raw/Nat448.cs')
-rw-r--r--crypto/src/math/raw/Nat448.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/crypto/src/math/raw/Nat448.cs b/crypto/src/math/raw/Nat448.cs
index 688f327a4..2da03bf0f 100644
--- a/crypto/src/math/raw/Nat448.cs
+++ b/crypto/src/math/raw/Nat448.cs
@@ -29,6 +29,19 @@ namespace Org.BouncyCastle.Math.Raw
             z[zOff + 6] = x[xOff + 6];
         }
 
+#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];
+            z[2] = x[2];
+            z[3] = x[3];
+            z[4] = x[4];
+            z[5] = x[5];
+            z[6] = x[6];
+        }
+#endif
+
         public static ulong[] Create64()
         {
             return new ulong[7];
@@ -67,7 +80,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 < 7; ++i)
             {