public abstract class

ECPoint

extends Object
java.lang.Object
   ↳ org.bouncycastle.math.ec.ECPoint
Known Direct Subclasses

Class Overview

base class for points on elliptic curves.

Summary

Nested Classes
class ECPoint.F2m Elliptic curve points over F2m  
class ECPoint.Fp Elliptic curve points over Fp  
Fields
protected ECMultiplier multiplier
protected PreCompInfo preCompInfo
protected boolean withCompression
Protected Constructors
ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y)
Public Methods
abstract ECPoint add(ECPoint b)
boolean equals(Object other)
ECCurve getCurve()
abstract byte[] getEncoded()
ECFieldElement getX()
ECFieldElement getY()
int hashCode()
boolean isCompressed()
boolean isInfinity()
ECPoint multiply(BigInteger k)
Multiplies this ECPoint by the given number.
abstract ECPoint negate()
abstract ECPoint subtract(ECPoint b)
abstract ECPoint twice()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected ECMultiplier multiplier

protected PreCompInfo preCompInfo

protected boolean withCompression

Protected Constructors

protected ECPoint (ECCurve curve, ECFieldElement x, ECFieldElement y)

Public Methods

public abstract ECPoint add (ECPoint b)

public boolean equals (Object other)

public ECCurve getCurve ()

public abstract byte[] getEncoded ()

public ECFieldElement getX ()

public ECFieldElement getY ()

public int hashCode ()

public boolean isCompressed ()

public boolean isInfinity ()

public ECPoint multiply (BigInteger k)

Multiplies this ECPoint by the given number.

Parameters
k The multiplicator.
Returns
  • k * this.

public abstract ECPoint negate ()

public abstract ECPoint subtract (ECPoint b)

public abstract ECPoint twice ()