Package org.bouncycastle.math.ec
Class ECPoint.F2m
java.lang.Object
org.bouncycastle.math.ec.ECPoint
org.bouncycastle.math.ec.ECPoint.F2m
- Enclosing class:
- ECPoint
public static class ECPoint.F2m extends ECPoint
Elliptic curve points over F2m
-
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 F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) -
Method Summary
Modifier and Type Method Description ECPointadd(ECPoint b)ECPoint.F2maddSimple(ECPoint.F2m b)Adds anotherECPoints.F2mtothiswithout checking if both points are on the same curve.byte[]getEncoded(boolean compressed)ECPointnegate()ECPointsubtract(ECPoint b)ECPoint.F2msubtractSimple(ECPoint.F2m b)Subtracts anotherECPoints.F2mfromthiswithout checking if both points are on the same curve.ECPointtwice()Methods inherited from class org.bouncycastle.math.ec.ECPoint
equals, getCurve, getEncoded, getX, getY, hashCode, isCompressed, isInfinity, multiply
-
Constructor Details
-
F2m
- Parameters:
curve- base curvex- x pointy- y point
-
F2m
- Parameters:
curve- base curvex- x pointy- y pointwithCompression- true if encode with point compression.
-
-
Method Details
-
getEncoded
public byte[] getEncoded(boolean compressed)- Specified by:
getEncodedin classECPoint
-
add
-
addSimple
Adds anotherECPoints.F2mtothiswithout checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.- Parameters:
b- The otherECPoints.F2mto add tothis.- Returns:
this + b
-
subtract
-
subtractSimple
Subtracts anotherECPoints.F2mfromthiswithout checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.- Parameters:
b- The otherECPoints.F2mto subtract fromthis.- Returns:
this - b
-
twice
-
negate
-