ModularReducer

Modular Reducer (using Barrett's technique)

Constructors

this
this(BigInt mod)
Undocumented in source.

Members

Functions

cube
BigInt cube(BigInt x)

Cube mod p

getModulus
const(BigInt) getModulus()
Undocumented in source. Be warned that the author may not have intended to support it.
initialized
bool initialized()
Undocumented in source. Be warned that the author may not have intended to support it.
multiply
BigInt multiply(BigInt x, BigInt y)

Multiply mod p

reduce
BigInt reduce(BigInt x)
Undocumented in source. Be warned that the author may not have intended to support it.
square
BigInt square(BigInt x)

Square mod p

Properties

dup
ModularReducer dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta