Class SecP224R1FieldElement
- java.lang.Object
-
- org.bouncycastle.math.ec.ECFieldElement
-
- org.bouncycastle.math.ec.ECFieldElement.AbstractFp
-
- org.bouncycastle.math.ec.custom.sec.SecP224R1FieldElement
-
- All Implemented Interfaces:
ECConstants
public class SecP224R1FieldElement extends ECFieldElement.AbstractFp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bouncycastle.math.ec.ECFieldElement
ECFieldElement.AbstractF2m, ECFieldElement.AbstractFp, ECFieldElement.F2m, ECFieldElement.Fp
-
-
Constructor Summary
Constructors Modifier Constructor Description SecP224R1FieldElement()
protected
SecP224R1FieldElement(int[] x)
SecP224R1FieldElement(java.math.BigInteger x)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECFieldElement
add(ECFieldElement b)
ECFieldElement
addOne()
ECFieldElement
divide(ECFieldElement b)
boolean
equals(java.lang.Object other)
java.lang.String
getFieldName()
int
getFieldSize()
int
hashCode()
ECFieldElement
invert()
boolean
isOne()
boolean
isZero()
ECFieldElement
multiply(ECFieldElement b)
ECFieldElement
negate()
ECFieldElement
sqrt()
return a sqrt root - the routine verifies that the calculation returns the right value - if none exists it returns null.ECFieldElement
square()
ECFieldElement
subtract(ECFieldElement b)
boolean
testBitZero()
java.math.BigInteger
toBigInteger()
-
Methods inherited from class org.bouncycastle.math.ec.ECFieldElement
bitLength, getEncoded, multiplyMinusProduct, multiplyPlusProduct, squareMinusProduct, squarePlusProduct, squarePow, toString
-
-
-
-
Method Detail
-
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
public java.math.BigInteger toBigInteger()
- Specified by:
toBigInteger
in classECFieldElement
-
getFieldName
public java.lang.String getFieldName()
- Specified by:
getFieldName
in classECFieldElement
-
getFieldSize
public int getFieldSize()
- Specified by:
getFieldSize
in classECFieldElement
-
add
public ECFieldElement add(ECFieldElement b)
- Specified by:
add
in classECFieldElement
-
addOne
public ECFieldElement addOne()
- Specified by:
addOne
in classECFieldElement
-
subtract
public ECFieldElement subtract(ECFieldElement b)
- Specified by:
subtract
in classECFieldElement
-
multiply
public ECFieldElement multiply(ECFieldElement b)
- Specified by:
multiply
in classECFieldElement
-
divide
public ECFieldElement divide(ECFieldElement b)
- Specified by:
divide
in classECFieldElement
-
negate
public ECFieldElement negate()
- Specified by:
negate
in classECFieldElement
-
square
public ECFieldElement square()
- Specified by:
square
in classECFieldElement
-
invert
public ECFieldElement invert()
- Specified by:
invert
in classECFieldElement
-
sqrt
public ECFieldElement 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
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-