public static class

ECPoint.Fp

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

Class Overview

Elliptic curve points over Fp

Summary

[Expand]
Inherited Fields
From class org.bouncycastle.math.ec.ECPoint
Public Constructors
ECPoint.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)
Create a point which encodes with point compression.
ECPoint.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
Create a point that encodes with or without point compresion.
Public Methods
ECPoint add(ECPoint b)
byte[] getEncoded()
return the field element encoded with point compression.
ECPoint negate()
ECPoint subtract(ECPoint b)
ECPoint twice()
[Expand]
Inherited Methods
From class org.bouncycastle.math.ec.ECPoint
From class java.lang.Object

Public Constructors

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

Create a point which encodes with point compression.

Parameters
curve the curve to use
x affine x co-ordinate
y affine y co-ordinate

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

Create a point that encodes with or without point compresion.

Parameters
curve the curve to use
x affine x co-ordinate
y affine y co-ordinate
withCompression if true encode with point compression

Public Methods

public ECPoint add (ECPoint b)

public byte[] getEncoded ()

return the field element encoded with point compression. (S 4.3.6)

public ECPoint negate ()

public ECPoint subtract (ECPoint b)

public ECPoint twice ()