org.bouncycastle.math.ec
Class ECPoint.Fp
- ECPoint
public static class ECPoint.Fp
Elliptic curve points over Fp
Fp
public Fp(ECCurve curve,
ECFieldElement x,
ECFieldElement y)
Create a point which encodes with point compression.
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinate
Fp
public Fp(ECCurve curve,
ECFieldElement x,
ECFieldElement y,
boolean withCompression)
Create a point that encodes with or without point compresion.
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinatewithCompression
- if true encode with point compression
getEncoded
public byte[] getEncoded()
return the field element encoded with point compression. (S 4.3.6)
- getEncoded in interface ECPoint
multiply
public ECPoint multiply(BigInteger k)
- multiply in interface ECPoint