Package org.bouncycastle.math.ec
Class ECFieldElement
- java.lang.Object
-
- org.bouncycastle.math.ec.ECFieldElement
-
- All Implemented Interfaces:
ECConstants
- Direct Known Subclasses:
ECFieldElement.AbstractF2m
,ECFieldElement.AbstractFp
public abstract class ECFieldElement extends java.lang.Object implements ECConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ECFieldElement.AbstractF2m
static class
ECFieldElement.AbstractFp
static class
ECFieldElement.F2m
Class representing the Elements of the finite field F 2 m in polynomial basis (PB) representation.static class
ECFieldElement.Fp
-
Constructor Summary
Constructors Constructor Description ECFieldElement()
-
Method Summary
-
-
-
Method Detail
-
toBigInteger
public abstract java.math.BigInteger toBigInteger()
-
getFieldName
public abstract java.lang.String getFieldName()
-
getFieldSize
public abstract int getFieldSize()
-
add
public abstract ECFieldElement add(ECFieldElement b)
-
addOne
public abstract ECFieldElement addOne()
-
subtract
public abstract ECFieldElement subtract(ECFieldElement b)
-
multiply
public abstract ECFieldElement multiply(ECFieldElement b)
-
divide
public abstract ECFieldElement divide(ECFieldElement b)
-
negate
public abstract ECFieldElement negate()
-
square
public abstract ECFieldElement square()
-
invert
public abstract ECFieldElement invert()
-
sqrt
public abstract ECFieldElement sqrt()
-
bitLength
public int bitLength()
-
isOne
public boolean isOne()
-
isZero
public boolean isZero()
-
multiplyMinusProduct
public ECFieldElement multiplyMinusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
-
multiplyPlusProduct
public ECFieldElement multiplyPlusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
-
squareMinusProduct
public ECFieldElement squareMinusProduct(ECFieldElement x, ECFieldElement y)
-
squarePlusProduct
public ECFieldElement squarePlusProduct(ECFieldElement x, ECFieldElement y)
-
squarePow
public ECFieldElement squarePow(int pow)
-
testBitZero
public boolean testBitZero()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getEncoded
public byte[] getEncoded()
-
getEncodedLength
public int getEncodedLength()
-
encodeTo
public void encodeTo(byte[] buf, int off)
-
-