summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-09-11 12:08:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-09-11 12:08:07 +0700
commitdea84c99e07dd2b4e507ec3e843a1fe64e14bcdd (patch)
tree413702c120c4d745821a99f0291a1d5e517bde8e /crypto
parentFixed loop count for BigInteger conversion (diff)
downloadBouncyCastle.NET-ed25519-dea84c99e07dd2b4e507ec3e843a1fe64e14bcdd.tar.xz
Add another variant
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/crypto/util/Pack.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/src/crypto/util/Pack.cs b/crypto/src/crypto/util/Pack.cs
index 2a3596772..30b4ec8ae 100644
--- a/crypto/src/crypto/util/Pack.cs
+++ b/crypto/src/crypto/util/Pack.cs
@@ -257,6 +257,15 @@ namespace Org.BouncyCastle.Crypto.Utilities
             }
         }
 
+        internal static void UInt32_To_LE(uint[] ns, int nsOff, int nsLen, byte[] bs, int bsOff)
+        {
+            for (int i = 0; i < nsLen; ++i)
+            {
+                UInt32_To_LE(ns[nsOff + i], bs, bsOff);
+                bsOff += 4;
+            }
+        }
+
         internal static uint LE_To_UInt32(byte[] bs)
         {
             return (uint)bs[0]