modPow method

BigInteger modPow(
  1. BigInteger exponent,
  2. BigInteger modulus
)

Returns the modular exponentiation of this BigInteger.

Computes (this^exponent) mod modulus

Implementation

BigInteger modPow(BigInteger exponent, BigInteger modulus) {
  return BigInteger._(_value.modPow(exponent._value, modulus._value));
}