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
- Enclosing class:
- ECPoint
Elliptic curve points over 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
ConstructorsConstructorDescriptionFp
(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.gudy.bouncycastle.math.ec.ECPoint
assertECMultiplier, equals, getCurve, getX, getY, hashCode, isCompressed, isInfinity, multiply, setPreCompInfo
-
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 ignore) return the field element encoded with point compression. (S 4.3.6)- Specified by:
getEncoded
in classECPoint
-
add
-
twice
-
subtract
-
negate
-