diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-09-11 12:08:07 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-09-11 12:08:07 +0700 |
commit | dea84c99e07dd2b4e507ec3e843a1fe64e14bcdd (patch) | |
tree | 413702c120c4d745821a99f0291a1d5e517bde8e | |
parent | Fixed loop count for BigInteger conversion (diff) | |
download | BouncyCastle.NET-ed25519-dea84c99e07dd2b4e507ec3e843a1fe64e14bcdd.tar.xz |
Add another variant
-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 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] |