| Modifier and Type | Method and Description |
|---|---|
| public ImmutableIntegerModuloP | |
| public ImmutableIntegerModuloP | |
| public ImmutableIntegerModuloP | Returns: the field element corresponding to va BigInteger value v)Get the field element equivalent to the supplied BigInteger value. |
| public default ImmutableIntegerModuloP | Returns: the field element corresponding to van array containing a little-endian unsigned integer v)Get a field element from a little-endian unsigned integer stored in an array. |
| public ImmutableIntegerModuloP | Returns: the field element corresponding to the bytes at the specified positionan array containing a little-endian unsigned integer v, int the starting position of the integer offset, int the number of bytes to read length, byte the high-order byte of the number highByte)Get a field element from a little-endian unsigned integer stored at the specified position in an array. |
| public BigInteger | |
| public SmallValue |
| get0 | back to summary |
|---|---|
| public ImmutableIntegerModuloP get0() Get the additive identity element 0
| |
| get1 | back to summary |
|---|---|
| public ImmutableIntegerModuloP get1() Get the multiplicative identity element 1
| |
| getElement | back to summary |
|---|---|
| public ImmutableIntegerModuloP getElement(BigInteger v) Get the field element equivalent to the supplied BigInteger value. The supplied value may be negative or larger than the modulus that defines the field.
| |
| getElement | back to summary |
|---|---|
| public default ImmutableIntegerModuloP getElement(byte[] v) Get a field element from a little-endian unsigned integer stored in an array. The entire array will be used, and the supplied value may be larger than the modulus that defines the field. The array will not be modified.
| |
| getElement | back to summary |
|---|---|
| public ImmutableIntegerModuloP getElement(byte[] v, int offset, int length, byte highByte) Get a field element from a little-endian unsigned integer stored at the specified position in an array. The supplied value may be larger than the modulus that defines the field. This method also takes a byte which is interpreted as an additional high-order byte of the number. The array will not be modified.
| |
| getSize | back to summary |
|---|---|
| public BigInteger getSize() Get the size of the field as a BigInteger. This size is equal to the prime modulus used to construct the field.
| |
| getSmallValue | back to summary |
|---|---|
| public SmallValue getSmallValue(int v) Get a "small" value according to this implementation. This value may be used in optimized forms of some operations to avoid unnecessary calculations. For example, multiplication is much faster when it is known that one of the numbers fits within a single limb. The definition of "small", and the range of accepted values, is implementation-specific.
| |