protected class IntegerPolynomial.MutableElement extends java.lang.Object implements MutableIntegerModuloP
IntegerModuloP.MultiplicativeInverser| Modifier | Constructor and Description |
|---|---|
protected |
MutableElement(long[] limbs,
int numAdds) |
| 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.
|
com.tencent.kona.sun.security.util.math.intpoly.IntegerPolynomial.ImmutableElement |
fixed()
Return this value as a fixed (immutable) element.
|
IntegerPolynomial.MutableElement |
setAdditiveInverse()
Set the value of this element equal to 0 - this.
|
IntegerPolynomial.MutableElement |
setDifference(IntegerModuloP genB)
Set the value of this element equal to this - b.
|
IntegerPolynomial.MutableElement |
setProduct(IntegerModuloP genB)
Set the value of this element equal to this * b.
|
IntegerPolynomial.MutableElement |
setProduct(SmallValue v)
Set the value of this element equal to this * v.
|
IntegerPolynomial.MutableElement |
setReduced()
Some implementations required reduction operations to be requested
by the client at certain times.
|
IntegerPolynomial.MutableElement |
setSquare()
Set the value of this element equal to this * this.
|
IntegerPolynomial.MutableElement |
setSum(IntegerModuloP genB)
Set the value of this element equal to this + b.
|
IntegerPolynomial.MutableElement |
setValue(byte[] arr,
int offset,
int length,
byte highByte)
Set the value equal to the little-endian unsigned integer stored at the
specified position in an array.
|
IntegerPolynomial.MutableElement |
setValue(java.nio.ByteBuffer buf,
int length,
byte highByte)
Set the value equal to the little-endian unsigned integer stored in a
buffer.
|
IntegerPolynomial.MutableElement |
setValue(IntegerModuloP v)
Set the value of this element equal to the value of the supplied
element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, additiveInverse, addModPowerTwo, addModPowerTwo, asBigInteger, asByteArray, asByteArray, getField, multiplicativeInverse, multiply, mutable, pow, square, subtractpublic com.tencent.kona.sun.security.util.math.intpoly.IntegerPolynomial.ImmutableElement fixed()
IntegerModuloPfixed in interface IntegerModuloPpublic void conditionalSet(IntegerModuloP b, int set)
MutableIntegerModuloPconditionalSet in interface MutableIntegerModuloPb - the element to conditionally swap withset - an int that determines whether to setpublic void conditionalSwapWith(MutableIntegerModuloP b, int swap)
MutableIntegerModuloPconditionalSwapWith in interface MutableIntegerModuloPb - the element to conditionally swap withswap - an int that determines whether to swappublic IntegerPolynomial.MutableElement setValue(IntegerModuloP v)
MutableIntegerModuloPsetValue in interface MutableIntegerModuloPv - the element whose value should be copied to thispublic IntegerPolynomial.MutableElement setValue(byte[] arr, int offset, int length, byte highByte)
MutableIntegerModuloPsetValue in interface MutableIntegerModuloParr - 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 numberpublic IntegerPolynomial.MutableElement setValue(java.nio.ByteBuffer buf, int length, byte highByte)
MutableIntegerModuloPsetValue in interface MutableIntegerModuloPbuf - a buffer containing a little-endian unsigned integerlength - the number of bytes to readhighByte - the high-order byte of the numberpublic IntegerPolynomial.MutableElement setProduct(IntegerModuloP genB)
MutableIntegerModuloPsetProduct in interface MutableIntegerModuloPgenB - the multiplicandpublic IntegerPolynomial.MutableElement setProduct(SmallValue v)
MutableIntegerModuloPsetProduct in interface MutableIntegerModuloPv - the small multiplicandpublic IntegerPolynomial.MutableElement setSum(IntegerModuloP genB)
MutableIntegerModuloPsetSum in interface MutableIntegerModuloPgenB - the sumandpublic IntegerPolynomial.MutableElement setDifference(IntegerModuloP genB)
MutableIntegerModuloPsetDifference in interface MutableIntegerModuloPgenB - the subtrahendpublic IntegerPolynomial.MutableElement setSquare()
MutableIntegerModuloPsetSquare in interface MutableIntegerModuloPpublic IntegerPolynomial.MutableElement setAdditiveInverse()
MutableIntegerModuloPsetAdditiveInverse in interface MutableIntegerModuloPpublic IntegerPolynomial.MutableElement setReduced()
MutableIntegerModuloPsetReduced in interface MutableIntegerModuloP