Package org.gudy.bouncycastle.math.ec
Class ECPoint.Fp
- java.lang.Object
-
- org.gudy.bouncycastle.math.ec.ECPoint
-
- org.gudy.bouncycastle.math.ec.ECPoint.Fp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.gudy.bouncycastle.math.ec.ECPoint
ECPoint.F2m, ECPoint.Fp
-
-
Field Summary
-
Fields inherited from class org.gudy.bouncycastle.math.ec.ECPoint
curve, multiplier, preCompInfo, withCompression, x, y
-
-
Constructor Summary
Constructors Constructor Description Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)
Create a point which encodes with point compression.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
Create a point that encodes with or without point compresion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECPoint
add(ECPoint b)
byte[]
getEncoded(boolean ignore)
return the field element encoded with point compression.ECPoint
negate()
ECPoint
subtract(ECPoint b)
ECPoint
twice()
-
Methods inherited from class org.gudy.bouncycastle.math.ec.ECPoint
assertECMultiplier, equals, getCurve, getX, getY, hashCode, isCompressed, isInfinity, multiply, setPreCompInfo
-
-
-
-
Constructor Detail
-
Fp
public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)
Create a point which encodes with point compression.- Parameters:
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.- Parameters:
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinatewithCompression
- if true encode with point compression
-
-
Method Detail
-
getEncoded
public byte[] getEncoded(boolean ignore)
return the field element encoded with point compression. (S 4.3.6)- Specified by:
getEncoded
in classECPoint
-
-