Class ECPoint

java.lang.Object
org.gudy.bouncycastle.math.ec.ECPoint
Direct Known Subclasses:
ECPoint.F2m, ECPoint.Fp

public abstract class ECPoint extends Object
base class for points on elliptic curves.
  • Field Details

  • Constructor Details

  • Method Details

    • getCurve

      public ECCurve getCurve()
    • getX

      public ECFieldElement getX()
    • getY

      public ECFieldElement getY()
    • isInfinity

      public boolean isInfinity()
    • isCompressed

      public boolean isCompressed()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setPreCompInfo

      void setPreCompInfo(PreCompInfo preCompInfo)
      Sets the PreCompInfo. Used by ECMultipliers to save the precomputation for this ECPoint to store the precomputation result for use by subsequent multiplication.
      Parameters:
      preCompInfo - The values precomputed by the ECMultiplier.
    • getEncoded

      public abstract byte[] getEncoded(boolean ignore)
    • add

      public abstract ECPoint add(ECPoint b)
    • subtract

      public abstract ECPoint subtract(ECPoint b)
    • negate

      public abstract ECPoint negate()
    • twice

      public abstract ECPoint twice()
    • assertECMultiplier

      void assertECMultiplier()
      Sets the default ECMultiplier, unless already set.
    • multiply

      public ECPoint multiply(BigInteger k)
      Multiplies this ECPoint by the given number.
      Parameters:
      k - The multiplicator.
      Returns:
      k * this.