<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Math.Raw.Nat

static class Nat
namespace Org.BouncyCastle.Math.Raw { internal static class Nat { public static uint Add(int len, uint[] x, uint[] y, uint[] z); public static uint Add33At(int len, uint x, uint[] z, int zPos); public static uint Add33At(int len, uint x, uint[] z, int zOff, int zPos); public static uint Add33To(int len, uint x, uint[] z); public static uint Add33To(int len, uint x, uint[] z, int zOff); public static uint AddBothTo(int len, uint[] x, uint[] y, uint[] z); public static uint AddBothTo(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] z, int zOff); public static uint AddDWordAt(int len, ulong x, uint[] z, int zPos); public static uint AddDWordAt(int len, ulong x, uint[] z, int zOff, int zPos); public static uint AddDWordTo(int len, ulong x, uint[] z); public static uint AddDWordTo(int len, ulong x, uint[] z, int zOff); public static uint AddTo(int len, uint[] x, uint[] z); public static uint AddTo(int len, uint[] x, int xOff, uint[] z, int zOff); public static uint AddTo(int len, uint[] x, uint[] z, uint cIn); public static uint AddTo(int len, uint[] x, int xOff, uint[] z, int zOff, uint cIn); public static uint AddToEachOther(int len, uint[] u, uint[] v); public static uint AddToEachOther(int len, uint[] u, int uOff, uint[] v, int vOff); public static uint AddWordAt(int len, uint x, uint[] z, int zPos); public static uint AddWordAt(int len, uint x, uint[] z, int zOff, int zPos); public static uint AddWordTo(int len, uint x, uint[] z); public static uint AddWordTo(int len, uint x, uint[] z, int zOff); public static uint CAdd(int len, int mask, uint[] x, uint[] y, uint[] z); public static uint CAddTo(int len, int mask, uint[] x, uint[] z); public static void CMov(int len, int mask, uint[] x, int xOff, uint[] z, int zOff); public static int Compare(int len, uint[] x, uint[] y); public static int Compare(int len, uint[] x, int xOff, uint[] y, int yOff); public static uint[] Copy(int len, uint[] x); public static void Copy(int len, uint[] x, uint[] z); public static void Copy(int len, uint[] x, int xOff, uint[] z, int zOff); public static ulong[] Copy64(int len, ulong[] x); public static void Copy64(int len, ulong[] x, ulong[] z); public static void Copy64(int len, ulong[] x, int xOff, ulong[] z, int zOff); public static uint[] Create(int len); public static ulong[] Create64(int len); public static int CSub(int len, int mask, uint[] x, uint[] y, uint[] z); public static int CSub(int len, int mask, uint[] x, int xOff, uint[] y, int yOff, uint[] z, int zOff); public static int Dec(int len, uint[] z); public static int Dec(int len, uint[] x, uint[] z); public static int DecAt(int len, uint[] z, int zPos); public static int DecAt(int len, uint[] z, int zOff, int zPos); public static bool Eq(int len, uint[] x, uint[] y); public static uint EqualTo(int len, uint[] x, uint y); public static uint EqualTo(int len, uint[] x, int xOff, uint y); public static uint EqualTo(int len, uint[] x, uint[] y); public static uint EqualTo(int len, uint[] x, int xOff, uint[] y, int yOff); public static ulong EqualTo64(int len, ulong[] x, ulong y); public static ulong EqualTo64(int len, ulong[] x, int xOff, ulong y); public static ulong EqualTo64(int len, ulong[] x, ulong[] y); public static ulong EqualTo64(int len, ulong[] x, int xOff, ulong[] y, int yOff); public static uint EqualToOne(int len, uint[] x); public static uint EqualToOne(int len, uint[] x, int xOff); public static ulong EqualToOne64(int len, ulong[] x); public static ulong EqualToOne64(int len, ulong[] x, int xOff); public static uint EqualToZero(int len, uint[] x); public static uint EqualToZero(int len, uint[] x, int xOff); public static ulong EqualToZero64(int len, ulong[] x); public static ulong EqualToZero64(int len, ulong[] x, int xOff); public static uint[] FromBigInteger(int bits, BigInteger x); public static ulong[] FromBigInteger64(int bits, BigInteger x); public static uint GetBit(uint[] x, int bit); public static int GetBitLength(int len, uint[] x); public static int GetBitLength(int len, uint[] x, int xOff); public static int GetBitLength64(int len, ulong[] x); public static int GetBitLength64(int len, ulong[] x, int xOff); public static int GetLengthForBits(int bits); public static int GetLengthForBits64(int bits); public static bool Gte(int len, uint[] x, uint[] y); public static uint Inc(int len, uint[] z); public static uint Inc(int len, uint[] x, uint[] z); public static uint IncAt(int len, uint[] z, int zPos); public static uint IncAt(int len, uint[] z, int zOff, int zPos); public static bool IsOne(int len, uint[] x); public static bool IsZero(int len, uint[] x); public static int LessThan(int len, uint[] x, uint[] y); public static int LessThan(int len, uint[] x, int xOff, uint[] y, int yOff); public static void Mul(int len, uint[] x, uint[] y, uint[] zz); public static void Mul(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] zz, int zzOff); public static void Mul(uint[] x, int xOff, int xLen, uint[] y, int yOff, int yLen, uint[] zz, int zzOff); public static uint MulAddTo(int len, uint[] x, uint[] y, uint[] zz); public static uint MulAddTo(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] zz, int zzOff); public static uint Mul31BothAdd(int len, uint a, uint[] x, uint b, uint[] y, uint[] z, int zOff); public static uint MulWord(int len, uint x, uint[] y, uint[] z); public static uint MulWord(int len, uint x, uint[] y, int yOff, uint[] z, int zOff); public static uint MulWordAddTo(int len, uint x, uint[] y, int yOff, uint[] z, int zOff); public static uint MulWordDwordAddAt(int len, uint x, ulong y, uint[] z, int zPos); public static int Negate(int len, uint[] x, uint[] z); public static uint ShiftDownBit(int len, uint[] z, uint c); public static uint ShiftDownBit(int len, uint[] z, int zOff, uint c); public static uint ShiftDownBit(int len, uint[] x, uint c, uint[] z); public static uint ShiftDownBit(int len, uint[] x, int xOff, uint c, uint[] z, int zOff); public static uint ShiftDownBits(int len, uint[] z, int bits, uint c); public static uint ShiftDownBits(int len, uint[] z, int zOff, int bits, uint c); public static uint ShiftDownBits(int len, uint[] x, int bits, uint c, uint[] z); public static uint ShiftDownBits(int len, uint[] x, int xOff, int bits, uint c, uint[] z, int zOff); public static ulong ShiftDownBits64(int len, ulong[] z, int zOff, int bits, ulong c); public static uint ShiftDownWord(int len, uint[] z, uint c); public static uint ShiftUpBit(int len, uint[] z, uint c); public static uint ShiftUpBit(int len, uint[] z, int zOff, uint c); public static uint ShiftUpBit(int len, uint[] x, uint c, uint[] z); public static uint ShiftUpBit(int len, uint[] x, int xOff, uint c, uint[] z, int zOff); public static ulong ShiftUpBit64(int len, ulong[] x, ulong c, ulong[] z); public static ulong ShiftUpBit64(int len, ulong[] x, int xOff, ulong c, ulong[] z, int zOff); public static uint ShiftUpBits(int len, uint[] z, int bits, uint c); public static uint ShiftUpBits(int len, uint[] z, int zOff, int bits, uint c); public static uint ShiftUpBits(int len, uint[] x, int bits, uint c, uint[] z); public static uint ShiftUpBits(int len, uint[] x, int xOff, int bits, uint c, uint[] z, int zOff); public static ulong ShiftUpBits64(int len, ulong[] z, int bits, ulong c); public static ulong ShiftUpBits64(int len, ulong[] z, int zOff, int bits, ulong c); public static ulong ShiftUpBits64(int len, ulong[] x, int bits, ulong c, ulong[] z); public static ulong ShiftUpBits64(int len, ulong[] x, int xOff, int bits, ulong c, ulong[] z, int zOff); public static ulong ShiftUpBitsXor64(int len, ulong[] x, int bits, ulong c, ulong[] y, ulong[] z); public static ulong ShiftUpBitsXor64(int len, ulong[] x, int xOff, int bits, ulong c, ulong[] y, int yOff, ulong[] z, int zOff); public static void Square(int len, uint[] x, uint[] zz); public static void Square(int len, uint[] x, int xOff, uint[] zz, int zzOff); public static uint SquareWordAddTo(uint[] x, int xPos, uint[] z); public static uint SquareWordAddTo(uint[] x, int xOff, int xPos, uint[] z, int zOff); public static int Sub(int len, uint[] x, uint[] y, uint[] z); public static int Sub(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] z, int zOff); public static int Sub33At(int len, uint x, uint[] z, int zPos); public static int Sub33At(int len, uint x, uint[] z, int zOff, int zPos); public static int Sub33From(int len, uint x, uint[] z); public static int Sub33From(int len, uint x, uint[] z, int zOff); public static int SubBothFrom(int len, uint[] x, uint[] y, uint[] z); public static int SubBothFrom(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] z, int zOff); public static int SubDWordAt(int len, ulong x, uint[] z, int zPos); public static int SubDWordAt(int len, ulong x, uint[] z, int zOff, int zPos); public static int SubDWordFrom(int len, ulong x, uint[] z); public static int SubDWordFrom(int len, ulong x, uint[] z, int zOff); public static int SubFrom(int len, uint[] x, uint[] z); public static int SubFrom(int len, uint[] x, int xOff, uint[] z, int zOff); public static int SubWordAt(int len, uint x, uint[] z, int zPos); public static int SubWordAt(int len, uint x, uint[] z, int zOff, int zPos); public static int SubWordFrom(int len, uint x, uint[] z); public static int SubWordFrom(int len, uint x, uint[] z, int zOff); public static BigInteger ToBigInteger(int len, uint[] x); public static BigInteger ToBigInteger64(int len, ulong[] x); public static void Xor(int len, uint[] x, uint y, uint[] z); public static void Xor(int len, uint[] x, int xOff, uint y, uint[] z, int zOff); public static void Xor(int len, uint[] x, uint[] y, uint[] z); public static void Xor(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] z, int zOff); public static void Xor64(int len, ulong[] x, ulong y, ulong[] z); public static void Xor64(int len, ulong[] x, int xOff, ulong y, ulong[] z, int zOff); public static void Xor64(int len, ulong[] x, ulong[] y, ulong[] z); public static void Xor64(int len, ulong[] x, int xOff, ulong[] y, int yOff, ulong[] z, int zOff); public static void XorBothTo(int len, uint[] x, uint[] y, uint[] z); public static void XorBothTo(int len, uint[] x, int xOff, uint[] y, int yOff, uint[] z, int zOff); public static void XorBothTo64(int len, ulong[] x, ulong[] y, ulong[] z); public static void XorBothTo64(int len, ulong[] x, int xOff, ulong[] y, int yOff, ulong[] z, int zOff); public static void XorTo(int len, uint[] x, uint[] z); public static void XorTo(int len, uint[] x, int xOff, uint[] z, int zOff); public static void XorTo64(int len, ulong[] x, ulong[] z); public static void XorTo64(int len, ulong[] x, int xOff, ulong[] z, int zOff); public static void XorToEachOther(int len, uint[] u, uint[] v); public static void XorToEachOther(int len, uint[] u, int uOff, uint[] v, int vOff); public static void XorToEachOther64(int len, ulong[] u, ulong[] v); public static void XorToEachOther64(int len, ulong[] u, int uOff, ulong[] v, int vOff); public static void Zero(int len, uint[] z); public static void Zero(int len, uint[] z, int zOff); public static void Zero64(int len, ulong[] z); public static void Zero64(int len, ulong[] z, int zOff); } }