Package org.bouncycastle.math.ec
Class ECFieldElement.Fp
java.lang.Object
org.bouncycastle.math.ec.ECFieldElement
org.bouncycastle.math.ec.ECFieldElement.AbstractFp
org.bouncycastle.math.ec.ECFieldElement.Fp
- All Implemented Interfaces:
ECConstants
- Enclosing class:
ECFieldElement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.math.ec.ECFieldElement
ECFieldElement.AbstractF2m, ECFieldElement.AbstractFp, ECFieldElement.F2m, ECFieldElement.Fp
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOne()
boolean
return the field name for this field.int
getQ()
int
hashCode()
invert()
protected BigInteger
modAdd
(BigInteger x1, BigInteger x2) protected BigInteger
protected BigInteger
protected BigInteger
protected BigInteger
protected BigInteger
modMult
(BigInteger x1, BigInteger x2) protected BigInteger
protected BigInteger
modSubtract
(BigInteger x1, BigInteger x2) 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.bouncycastle.math.ec.ECFieldElement
bitLength, encodeTo, getEncoded, getEncodedLength, isOne, isZero, squarePow, testBitZero, toString
-
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
-
addOne
- Specified by:
addOne
in classECFieldElement
-
subtract
- Specified by:
subtract
in classECFieldElement
-
multiply
- Specified by:
multiply
in classECFieldElement
-
multiplyMinusProduct
- Overrides:
multiplyMinusProduct
in classECFieldElement
-
multiplyPlusProduct
- Overrides:
multiplyPlusProduct
in classECFieldElement
-
divide
- Specified by:
divide
in classECFieldElement
-
negate
- Specified by:
negate
in classECFieldElement
-
square
- Specified by:
square
in classECFieldElement
-
squareMinusProduct
- Overrides:
squareMinusProduct
in classECFieldElement
-
squarePlusProduct
- Overrides:
squarePlusProduct
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
-
modAdd
-
modDouble
-
modHalf
-
modHalfAbs
-
modInverse
-
modMult
-
modReduce
-
modSubtract
-
equals
-
hashCode
public int hashCode()
-