tuweni / org.apache.tuweni.units.bigints / UInt32Value / multiplyMod

multiplyMod

abstract fun multiplyMod(value: T, modulus: UInt32!): T (source)

Returns a value that is ((this * value) mod modulus).

Parameters

value - T: The amount to multiply this value by.

modulus - UInt32!: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus == 0.

Return
T: (this * value) mod modulus

abstract fun multiplyMod(value: Int, modulus: UInt32!): T (source)

Returns a value that is ((this * value) mod modulus).

Parameters

value - Int: The amount to multiply this value by.

modulus - UInt32!: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus == 0.

Return
T: (this * value) mod modulus

abstract fun multiplyMod(value: Int, modulus: Int): T (source)

Returns a value that is ((this * value) mod modulus).

Parameters

value - Int: The amount to multiply this value by.

modulus - Int: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus ≤ 0.

Return
T: (this * value) mod modulus