Package org.bouncycastle.math.ec
Class ECPoint.Fp
java.lang.Object
org.bouncycastle.math.ec.ECPoint
org.bouncycastle.math.ec.ECPoint.Fp
- Enclosing class:
- ECPoint
public static class ECPoint.Fp extends ECPoint
Elliptic curve points over Fp
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.math.ec.ECPoint
ECPoint.F2m, ECPoint.Fp -
Field Summary
Fields inherited from class org.bouncycastle.math.ec.ECPoint
multiplier, preCompInfo, withCompression -
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
Methods inherited from class org.bouncycastle.math.ec.ECPoint
equals, getCurve, getEncoded, getX, getY, hashCode, isCompressed, isInfinity, multiply
-
Constructor Details
-
Fp
Create a point which encodes with point compression.- Parameters:
curve- the curve to usex- affine x co-ordinatey- affine y co-ordinate
-
Fp
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 Details
-
getEncoded
public byte[] getEncoded(boolean compressed)return the field element encoded with point compression. (S 4.3.6)- Specified by:
getEncodedin classECPoint
-
add
-
twice
-
subtract
-
negate
-