public static class

ECPoint.F2m

extends ECPoint
java.lang.Object
   ↳ org.bouncycastle.math.ec.ECPoint
     ↳ org.bouncycastle.math.ec.ECPoint.F2m

Class Overview

Elliptic curve points over F2m

Summary

[Expand]
Inherited Fields
From class org.bouncycastle.math.ec.ECPoint
Public Constructors
ECPoint.F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)
ECPoint.F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
Public Methods
ECPoint add(ECPoint b)
ECPoint.F2m addSimple(ECPoint.F2m b)
Adds another ECPoints.F2m to this without checking if both points are on the same curve.
byte[] getEncoded()
ECPoint negate()
ECPoint subtract(ECPoint b)
ECPoint.F2m subtractSimple(ECPoint.F2m b)
Subtracts another ECPoints.F2m from this without checking if both points are on the same curve.
ECPoint twice()
[Expand]
Inherited Methods
From class org.bouncycastle.math.ec.ECPoint
From class java.lang.Object

Public Constructors

public ECPoint.F2m (ECCurve curve, ECFieldElement x, ECFieldElement y)

Parameters
curve base curve
x x point
y y point

public ECPoint.F2m (ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)

Parameters
curve base curve
x x point
y y point
withCompression true if encode with point compression.

Public Methods

public ECPoint add (ECPoint b)

public ECPoint.F2m addSimple (ECPoint.F2m b)

Adds another ECPoints.F2m to this without checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.

Parameters
b The other ECPoints.F2m to add to this.
Returns
  • this + b

public byte[] getEncoded ()

public ECPoint negate ()

public ECPoint subtract (ECPoint b)

public ECPoint.F2m subtractSimple (ECPoint.F2m b)

Subtracts another ECPoints.F2m from this without checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.

Parameters
b The other ECPoints.F2m to subtract from this.
Returns
  • this - b

public ECPoint twice ()