Class ECPoint.F2m

  • Enclosing class:
    ECPoint

    public static class ECPoint.F2m
    extends ECPoint
    Elliptic curve points over F2m
    • Constructor Detail

      • F2m

        public F2m​(ECCurve curve,
                   ECFieldElement x,
                   ECFieldElement y,
                   boolean withCompression)
        Parameters:
        curve - base curve
        x - x point
        y - y point
        withCompression - true if encode with point compression.
      • F2m

        public F2m​(ECCurve curve)
        Deprecated.
        use ECCurve.getInfinity() Constructor for point at infinity
    • Method Detail

      • getEncoded

        public byte[] getEncoded​(boolean ignore)
        Specified by:
        getEncoded in class ECPoint
      • checkPoints

        private static void checkPoints​(ECPoint a,
                                        ECPoint b)
        Check, if two ECPoints can be added or subtracted.
        Parameters:
        a - The first ECPoint to check.
        b - The second ECPoint to check.
        Throws:
        java.lang.IllegalArgumentException - if a and b cannot be added.
      • addSimple

        public ECPoint.F2m addSimple​(ECPoint.F2m b)
        Adds another ECPoints.F2m to this without 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 other ECPoints.F2m to add to this.
        Returns:
        this + b
      • subtractSimple

        public ECPoint.F2m subtractSimple​(ECPoint.F2m b)
        Subtracts another ECPoints.F2m from this without 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 other ECPoints.F2m to subtract from this.
        Returns:
        this - b