Java.Math.BigInteger.ModPow Method
Returns a BigInteger whose value is pow(this, exponent) mod modulus.

Syntax

[Android.Runtime.Register("modPow", "(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;", "GetModPow_Ljava_math_BigInteger_Ljava_math_BigInteger_Handler")]
public virtual BigInteger ModPow (BigInteger exponent, BigInteger m)

Parameters

exponent
the exponent.
modulus
Documentation for this section has not yet been entered.
m
the modulus.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif modulus == null or exponent == null.
Java.Lang.ArithmeticExceptionif modulus or if exponent and not relatively prime to modulus.

Remarks

Returns a BigInteger whose value is pow(this, exponent) mod modulus. The modulus must be positive. The result is guaranteed to be in the interval [0, modulus). If the exponent is negative, then pow(this.modInverse(modulus), -exponent) mod modulus is computed. The inverse of this only exists if this is relatively prime to the modulus, otherwise an exception is thrown.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1