Package org.gudy.bouncycastle.math.ec
Class ECFieldElement.Fp
java.lang.Object
org.gudy.bouncycastle.math.ec.ECFieldElement
org.gudy.bouncycastle.math.ec.ECFieldElement.Fp
- All Implemented Interfaces:
ECConstants
- Enclosing class:
- ECFieldElement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gudy.bouncycastle.math.ec.ECFieldElement
ECFieldElement.F2m, ECFieldElement.Fp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
return the field name for this field.int
getQ()
int
hashCode()
invert()
private static BigInteger[]
lucasSequence
(BigInteger p, BigInteger P, BigInteger Q, BigInteger k) negate()
sqrt()
return a sqrt root - the routine verifies that the calculation returns the right value - if none exists it returns null.square()
Methods inherited from class org.gudy.bouncycastle.math.ec.ECFieldElement
toString
-
Field Details
-
x
-
q
-
-
Constructor Details
-
Fp
-
-
Method Details
-
toBigInteger
- Specified by:
toBigInteger
in classECFieldElement
-
getFieldName
return the field name for this field.- Specified by:
getFieldName
in classECFieldElement
- Returns:
- the string "Fp".
-
getFieldSize
public int getFieldSize()- Specified by:
getFieldSize
in classECFieldElement
-
getQ
-
add
- Specified by:
add
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
-
lucasSequence
-
equals
-
hashCode
public int hashCode()
-