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()booleanreturn the field name for this field.intgetQ()inthashCode()invert()protected BigIntegermodAdd(BigInteger x1, BigInteger x2) protected BigIntegerprotected BigIntegerprotected BigIntegerprotected BigIntegerprotected BigIntegermodMult(BigInteger x1, BigInteger x2) protected BigIntegerprotected BigIntegermodSubtract(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, getEncoded, isOne, isZero, squarePow, testBitZero, toString
-
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
-
addOne
- Specified by:
addOnein classECFieldElement
-
subtract
- Specified by:
subtractin classECFieldElement
-
multiply
- Specified by:
multiplyin classECFieldElement
-
multiplyMinusProduct
- Overrides:
multiplyMinusProductin classECFieldElement
-
multiplyPlusProduct
- Overrides:
multiplyPlusProductin classECFieldElement
-
divide
- Specified by:
dividein classECFieldElement
-
negate
- Specified by:
negatein classECFieldElement
-
square
- Specified by:
squarein classECFieldElement
-
squareMinusProduct
- Overrides:
squareMinusProductin classECFieldElement
-
squarePlusProduct
- Overrides:
squarePlusProductin 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
-
modAdd
-
modDouble
-
modHalf
-
modHalfAbs
-
modInverse
-
modMult
-
modReduce
-
modSubtract
-
equals
-
hashCode
public int hashCode()
-