diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-12 10:05:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-12 10:05:27 +0700 |
commit | 47489c19f30d0d5623bf225532604e07a9453470 (patch) | |
tree | 7800b32c191a5c25257574b9aa58788c6c006970 /crypto | |
parent | Add extra random tests for SipHash to check consistency across different upda... (diff) | |
download | BouncyCastle.NET-ed25519-47489c19f30d0d5623bf225532604e07a9453470.tar.xz |
Add new method
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/crypto/util/Pack.cs | 9 |
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]; |