From 02a047c6e1a4fb2694afda84b2cef6b3bb57cbce Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 19 Mar 2024 21:26:35 +0700 Subject: Refactor Pack --- crypto/src/crypto/util/Pack.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crypto') diff --git a/crypto/src/crypto/util/Pack.cs b/crypto/src/crypto/util/Pack.cs index dc0e93b7d..3d11ed74e 100644 --- a/crypto/src/crypto/util/Pack.cs +++ b/crypto/src/crypto/util/Pack.cs @@ -52,7 +52,7 @@ namespace Org.BouncyCastle.Crypto.Utilities internal static byte[] UInt16_To_BE(ushort n) { byte[] bs = new byte[2]; - UInt16_To_BE(n, bs, 0); + UInt16_To_BE(n, bs); return bs; } @@ -193,7 +193,7 @@ namespace Org.BouncyCastle.Crypto.Utilities internal static byte[] UInt32_To_BE(uint n) { byte[] bs = new byte[4]; - UInt32_To_BE(n, bs, 0); + UInt32_To_BE(n, bs); return bs; } @@ -267,7 +267,7 @@ namespace Org.BouncyCastle.Crypto.Utilities internal static byte[] UInt64_To_BE(ulong n) { byte[] bs = new byte[8]; - UInt64_To_BE(n, bs, 0); + UInt64_To_BE(n, bs); return bs; } @@ -415,7 +415,7 @@ namespace Org.BouncyCastle.Crypto.Utilities internal static byte[] UInt16_To_LE(ushort n) { byte[] bs = new byte[2]; - UInt16_To_LE(n, bs, 0); + UInt16_To_LE(n, bs); return bs; } @@ -494,7 +494,7 @@ namespace Org.BouncyCastle.Crypto.Utilities internal static byte[] UInt32_To_LE(uint n) { byte[] bs = new byte[4]; - UInt32_To_LE(n, bs, 0); + UInt32_To_LE(n, bs); return bs; } @@ -642,7 +642,7 @@ namespace Org.BouncyCastle.Crypto.Utilities internal static byte[] UInt64_To_LE(ulong n) { byte[] bs = new byte[8]; - UInt64_To_LE(n, bs, 0); + UInt64_To_LE(n, bs); return bs; } -- cgit 1.4.1