Package net.i2p.crypto.eddsa.math.bigint
Class BigIntegerFieldElement
java.lang.Object
net.i2p.crypto.eddsa.math.FieldElement
net.i2p.crypto.eddsa.math.bigint.BigIntegerFieldElement
- All Implemented Interfaces:
Serializable
A particular element of the field \Z/(2^255-19).
- Author:
- str4d
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(package private) final BigInteger
Variable is package private for encoding.Fields inherited from class net.i2p.crypto.eddsa.math.FieldElement
f
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(FieldElement val) addOne()
cmov
(FieldElement val, int b) divide
(BigInteger val) divide
(FieldElement val) boolean
int
hashCode()
invert()
boolean
mod
(FieldElement m) modPow
(FieldElement e, FieldElement m) multiply
(FieldElement val) negate()
pow
(FieldElement e) pow22523()
square()
subtract
(FieldElement val) toString()
Methods inherited from class net.i2p.crypto.eddsa.math.FieldElement
isNegative, toByteArray
-
Field Details
-
bi
Variable is package private for encoding.
-
-
Constructor Details
-
BigIntegerFieldElement
-
-
Method Details
-
isNonZero
public boolean isNonZero()- Specified by:
isNonZero
in classFieldElement
-
add
- Specified by:
add
in classFieldElement
-
addOne
- Overrides:
addOne
in classFieldElement
-
subtract
- Specified by:
subtract
in classFieldElement
-
subtractOne
- Overrides:
subtractOne
in classFieldElement
-
negate
- Specified by:
negate
in classFieldElement
-
divide
- Overrides:
divide
in classFieldElement
-
divide
-
multiply
- Specified by:
multiply
in classFieldElement
-
square
- Specified by:
square
in classFieldElement
-
squareAndDouble
- Specified by:
squareAndDouble
in classFieldElement
-
invert
- Specified by:
invert
in classFieldElement
-
mod
-
modPow
-
pow
-
pow22523
- Specified by:
pow22523
in classFieldElement
-
cmov
- Specified by:
cmov
in classFieldElement
- Since:
- 0.9.36
-
hashCode
public int hashCode() -
equals
-
toString
-