summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-03-12 10:05:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-03-12 10:05:27 +0700
commit47489c19f30d0d5623bf225532604e07a9453470 (patch)
tree7800b32c191a5c25257574b9aa58788c6c006970 /crypto
parentAdd extra random tests for SipHash to check consistency across different upda... (diff)
downloadBouncyCastle.NET-ed25519-47489c19f30d0d5623bf225532604e07a9453470.tar.xz
Add new method
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 1fd21ee53..087cb7cea 100644
--- a/crypto/src/crypto/util/Pack.cs
+++ b/crypto/src/crypto/util/Pack.cs
@@ -221,6 +221,15 @@ namespace Org.BouncyCastle.Crypto.Utilities
             }
         }
 
+        internal static void LE_To_UInt32(byte[] bs, int bOff, uint[] ns, int nOff, int count)
+        {
+            for (int i = 0; i < count; ++i)
+            {
+                ns[nOff + i] = LE_To_UInt32(bs, bOff);
+                bOff += 4;
+            }
+        }
+
         internal static byte[] UInt64_To_LE(ulong n)
         {
             byte[] bs = new byte[8];