BigIntHelper

Undocumented in source.

Members

Aliases

powmod
alias powmod = std.bigint.powmod
Undocumented in source.

Static functions

bigIntFromUByteArray
BigInt bigIntFromUByteArray(ubyte[] buffer)
bigIntToUByteArray
ubyte[] bigIntToUByteArray(BigInt value)
millerRabinPrimeTest
bool millerRabinPrimeTest(BigInt n, size_t confidence)
powmod
BigInt powmod(BigInt base, BigInt exponent, BigInt modulus)
randomGenerate
BigInt randomGenerate(uint bitLength, int highBit, int lowBit)

Random generate a BigInt by bitLength.

randomGenerate
BigInt randomGenerate(BigInt min, BigInt max)

Random generate a BigInt between min and max.

Meta