ModularReducer

Modular Reducer (using Barrett's technique)

Constructors

this
this(BigInt mod)
Undocumented in source.

Members

Functions

cube
BigInt cube(const(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(const(BigInt)* x, const(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(const(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