public interface MutableIntegerModuloP extends IntegerModuloP
IntegerModuloP.MultiplicativeInverser| Modifier and Type | Method and Description |
|---|---|
void |
conditionalSet(IntegerModuloP b,
int set)
Set this value to the value of b when set has the value 1.
|
void |
conditionalSwapWith(MutableIntegerModuloP b,
int swap)
Swap the value of this with the value of b when swap has the value 1.
|
MutableIntegerModuloP |
setAdditiveInverse()
Set the value of this element equal to 0 - this.
|
MutableIntegerModuloP |
setDifference(IntegerModuloP b)
Set the value of this element equal to this - b.
|
MutableIntegerModuloP |
setProduct(IntegerModuloP b)
Set the value of this element equal to this * b.
|
MutableIntegerModuloP |
setProduct(SmallValue v)
Set the value of this element equal to this * v.
|
MutableIntegerModuloP |
setSquare()
Set the value of this element equal to this * this.
|
MutableIntegerModuloP |
setSum(IntegerModuloP b)
Set the value of this element equal to this + b.
|
MutableIntegerModuloP |
setValue(byte[] v,
int offset,
int length,
byte highByte)
Set the value equal to the little-endian unsigned integer stored at the
specified position in an array.
|
MutableIntegerModuloP |
setValue(java.nio.ByteBuffer buf,
int length,
byte highByte)
Set the value equal to the little-endian unsigned integer stored in a
buffer.
|
MutableIntegerModuloP |
setValue(IntegerModuloP v)
Set the value of this element equal to the value of the supplied
element.
|
add, additiveInverse, addModPowerTwo, addModPowerTwo, asBigInteger, asByteArray, asByteArray, fixed, getField, multiplicativeInverse, multiply, mutable, pow, square, subtractvoid conditionalSet(IntegerModuloP b, int set)
b - the element to conditionally swap withset - an int that determines whether to setvoid conditionalSwapWith(MutableIntegerModuloP b, int swap)
b - the element to conditionally swap withswap - an int that determines whether to swapMutableIntegerModuloP setValue(IntegerModuloP v)
v - the element whose value should be copied to thisMutableIntegerModuloP setValue(byte[] v, int offset, int length, byte highByte)
v - an array containing a little-endian unsigned integeroffset - the starting position of the integerlength - the number of bytes to readhighByte - the high-order byte of the numberMutableIntegerModuloP setValue(java.nio.ByteBuffer buf, int length, byte highByte)
buf - a buffer containing a little-endian unsigned integerlength - the number of bytes to readhighByte - the high-order byte of the numberMutableIntegerModuloP setSquare()
MutableIntegerModuloP setSum(IntegerModuloP b)
b - the sumandMutableIntegerModuloP setDifference(IntegerModuloP b)
b - the subtrahendMutableIntegerModuloP setProduct(IntegerModuloP b)
b - the multiplicandMutableIntegerModuloP setProduct(SmallValue v)
v - the small multiplicandMutableIntegerModuloP setAdditiveInverse()