BigIntegers public static class BigIntegers Documentation public static readonly BigInteger One public static readonly BigInteger Zero public static byte[] AsUnsignedByteArray(BigInteger n) public static byte[] AsUnsignedByteArray(int length, BigInteger n) public static void AsUnsignedByteArray(BigInteger n, byte[] buf, int off, int len) public static void AsUnsignedByteArray(BigInteger n, Span<byte> buf) public static BigInteger CreateRandomBigInteger(int bitLength, SecureRandom secureRandom) Creates a Random BigInteger from the secure random of a given bit length. public static BigInteger CreateRandomInRange(BigInteger min, BigInteger max, SecureRandom random) public static int GetByteLength(BigInteger n) public static int GetUnsignedByteLength(BigInteger n) public static BigInteger ModOddInverse(BigInteger M, BigInteger X) public static BigInteger ModOddInverseVar(BigInteger M, BigInteger X)