Package org.bouncycastle.math.ec
Class ECCurve
java.lang.Object
org.bouncycastle.math.ec.ECCurve
- Direct Known Subclasses:
ECCurve.F2m,ECCurve.Fp
public abstract class ECCurve extends Object
base class for an elliptic curve
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classECCurve.F2mElliptic curves over F2m.static classECCurve.FpElliptic curve over Fp -
Constructor Summary
Constructors Constructor Description ECCurve() -
Method Summary
Modifier and Type Method Description abstract ECPointcreatePoint(BigInteger x, BigInteger y, boolean withCompression)ECPointdecodePoint(byte[] encoded)Decode a point on this curve from its ASN.1 encoding.protected abstract ECPointdecompressPoint(int yTilde, BigInteger X1)abstract ECFieldElementfromBigInteger(BigInteger x)ECFieldElementgetA()ECFieldElementgetB()abstract intgetFieldSize()abstract ECPointgetInfinity()
-
Constructor Details
-
ECCurve
public ECCurve()
-
-
Method Details
-
getFieldSize
public abstract int getFieldSize() -
fromBigInteger
-
createPoint
-
getInfinity
-
getA
-
getB
-
decompressPoint
-
decodePoint
Decode a point on this curve from its ASN.1 encoding. The different encodings are taken account of, including point compression forFp(X9.62 s 4.2.1 pg 17).- Returns:
- The decoded point.
-