Class SecP128R1FieldElement
java.lang.Object
org.bouncycastle.math.ec.ECFieldElement
org.bouncycastle.math.ec.ECFieldElement.AbstractFp
org.bouncycastle.math.ec.custom.sec.SecP128R1FieldElement
- All Implemented Interfaces:
ECConstants
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.math.ec.ECFieldElement
ECFieldElement.AbstractF2m, ECFieldElement.AbstractFp, ECFieldElement.F2m, ECFieldElement.Fp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bouncycastle.math.ec.ECFieldElement
bitLength, encodeTo, getEncoded, getEncodedLength, multiplyMinusProduct, multiplyPlusProduct, squareMinusProduct, squarePlusProduct, squarePow, toString
-
Field Details
-
Q
-
x
protected int[] x
-
-
Constructor Details
-
SecP128R1FieldElement
-
SecP128R1FieldElement
public SecP128R1FieldElement() -
SecP128R1FieldElement
protected SecP128R1FieldElement(int[] x)
-
-
Method Details
-
isZero
public boolean isZero()- Overrides:
isZero
in classECFieldElement
-
isOne
public boolean isOne()- Overrides:
isOne
in classECFieldElement
-
testBitZero
public boolean testBitZero()- Overrides:
testBitZero
in classECFieldElement
-
toBigInteger
- Specified by:
toBigInteger
in classECFieldElement
-
getFieldName
- Specified by:
getFieldName
in classECFieldElement
-
getFieldSize
public int getFieldSize()- Specified by:
getFieldSize
in classECFieldElement
-
add
- Specified by:
add
in classECFieldElement
-
addOne
- Specified by:
addOne
in classECFieldElement
-
subtract
- Specified by:
subtract
in classECFieldElement
-
multiply
- Specified by:
multiply
in classECFieldElement
-
divide
- Specified by:
divide
in classECFieldElement
-
negate
- Specified by:
negate
in classECFieldElement
-
square
- Specified by:
square
in classECFieldElement
-
invert
- Specified by:
invert
in classECFieldElement
-
sqrt
return a sqrt root - the routine verifies that the calculation returns the right value - if none exists it returns null.- Specified by:
sqrt
in classECFieldElement
-
equals
-
hashCode
public int hashCode()
-