public override ECPoint Negate()
        {
            if (IsInfinity)
                return this;

            return new SecP384R1Point(Curve, RawXCoord, RawYCoord.Negate(), RawZCoords, IsCompressed);
        }
Beispiel #2
0
 public virtual ECPoint ScaleY(ECFieldElement scale)
 {
     if (!IsInfinity)
     {
         return(Curve.CreateRawPoint(RawXCoord, RawYCoord.Multiply(scale), RawZCoords, IsCompressed));
     }
     return(this);
 }
Beispiel #3
0
        public override ECPoint Negate()
        {
            if (IsInfinity)
            {
                return(this);
            }

            return(new SecP256K1Point(Curve, RawXCoord, RawYCoord.Negate(), RawZCoords, IsCompressed));
        }
Beispiel #4
0
        public override ECPoint Negate()
        {
            if (IsInfinity)
            {
                return(this);
            }

            return(new SecP521R1Point(Curve, RawXCoord, RawYCoord.Negate(), RawZCoords));
        }
Beispiel #5
0
        public override ECPoint Negate()
        {
            if (IsInfinity)
            {
                return(this);
            }

            ECCurve curve = Curve;
            int     coord = curve.CoordinateSystem;

            if (ECCurve.COORD_AFFINE != coord)
            {
                return(new FpPoint(curve, RawXCoord, RawYCoord.Negate(), RawZCoords, IsCompressed));
            }

            return(new FpPoint(curve, RawXCoord, RawYCoord.Negate(), IsCompressed));
        }
Beispiel #6
0
 protected virtual ECPoint CreateScaledPoint(ECFieldElement sx, ECFieldElement sy)
 {
     return(Curve.CreateRawPoint(RawXCoord.Multiply(sx), RawYCoord.Multiply(sy), IsCompressed));
 }