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
FieldsModifier and TypeFieldDescription(package private) final BigIntegerVariable is package private for encoding.Fields inherited from class net.i2p.crypto.eddsa.math.FieldElement
f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(FieldElement val) addOne()cmov(FieldElement val, int b) divide(BigInteger val) divide(FieldElement val) booleaninthashCode()invert()booleanmod(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:
isNonZeroin classFieldElement
-
add
- Specified by:
addin classFieldElement
-
addOne
- Overrides:
addOnein classFieldElement
-
subtract
- Specified by:
subtractin classFieldElement
-
subtractOne
- Overrides:
subtractOnein classFieldElement
-
negate
- Specified by:
negatein classFieldElement
-
divide
- Overrides:
dividein classFieldElement
-
divide
-
multiply
- Specified by:
multiplyin classFieldElement
-
square
- Specified by:
squarein classFieldElement
-
squareAndDouble
- Specified by:
squareAndDoublein classFieldElement
-
invert
- Specified by:
invertin classFieldElement
-
mod
-
modPow
-
pow
-
pow22523
- Specified by:
pow22523in classFieldElement
-
cmov
- Specified by:
cmovin classFieldElement- Since:
- 0.9.36
-
hashCode
public int hashCode() -
equals
-
toString
-