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
  • Constructor Details

    • ECCurve

      public ECCurve()
  • Method Details

    • getFieldSize

      public abstract int getFieldSize()
    • fromBigInteger

      public abstract ECFieldElement fromBigInteger​(BigInteger x)
    • createPoint

      public abstract ECPoint createPoint​(BigInteger x, BigInteger y, boolean withCompression)
    • getInfinity

      public abstract ECPoint getInfinity()
    • getA

      public ECFieldElement getA()
    • getB

      public ECFieldElement getB()
    • decompressPoint

      protected abstract ECPoint decompressPoint​(int yTilde, BigInteger X1)
    • decodePoint

      public ECPoint decodePoint​(byte[] encoded)
      Decode a point on this curve from its ASN.1 encoding. The different encodings are taken account of, including point compression for Fp (X9.62 s 4.2.1 pg 17).
      Returns:
      The decoded point.