summary refs log tree commit diff
path: root/crypto/src/math/raw/Nat320.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/raw/Nat320.cs')
-rw-r--r--crypto/src/math/raw/Nat320.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/src/math/raw/Nat320.cs b/crypto/src/math/raw/Nat320.cs
index c7daa71e2..0ad677db4 100644
--- a/crypto/src/math/raw/Nat320.cs
+++ b/crypto/src/math/raw/Nat320.cs
@@ -16,6 +16,15 @@ namespace Org.BouncyCastle.Math.Raw
             z[4] = x[4];
         }
 
+        public static void Copy64(ulong[] x, int xOff, ulong[] z, int zOff)
+        {
+            z[zOff + 0] = x[xOff + 0];
+            z[zOff + 1] = x[xOff + 1];
+            z[zOff + 2] = x[xOff + 2];
+            z[zOff + 3] = x[xOff + 3];
+            z[zOff + 4] = x[xOff + 4];
+        }
+
         public static ulong[] Create64()
         {
             return new ulong[5];