From dea84c99e07dd2b4e507ec3e843a1fe64e14bcdd Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 11 Sep 2020 12:08:07 +0700 Subject: Add another variant --- crypto/src/crypto/util/Pack.cs | 9 +++++++++ 1 file changed, 9 insertions(+) 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] -- cgit 1.5.1