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 ECFieldElement
ECFieldElement.F2m, ECFieldElement.Fp -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanreturn the field name for this field.intgetQ()inthashCode()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 ECFieldElement
toString
-
Field Details
-
x
-
q
-
-
Constructor Details
-
Fp
-
-
Method Details
-
toBigInteger
- Specified by:
toBigIntegerin classECFieldElement
-
getFieldName
return the field name for this field.- Specified by:
getFieldNamein classECFieldElement- Returns:
- the string "Fp".
-
getFieldSize
public int getFieldSize()- Specified by:
getFieldSizein classECFieldElement
-
getQ
-
add
- Specified by:
addin classECFieldElement
-
subtract
- Specified by:
subtractin classECFieldElement
-
multiply
- Specified by:
multiplyin classECFieldElement
-
divide
- Specified by:
dividein classECFieldElement
-
negate
- Specified by:
negatein classECFieldElement
-
square
- Specified by:
squarein classECFieldElement
-
invert
- Specified by:
invertin classECFieldElement
-
sqrt
return a sqrt root - the routine verifies that the calculation returns the right value - if none exists it returns null.- Specified by:
sqrtin classECFieldElement
-
lucasSequence
-
equals
-
hashCode
-