示例#1
0
        public override ECPoint Negate()
        {
            if (IsInfinity)
                return this;

            return new SecP384R1Point(Curve, RawXCoord, RawYCoord.Negate(), RawZCoords, IsCompressed);
        }
示例#2
0
        public override ECPoint Negate()
        {
            if (IsInfinity)
            {
                return(this);
            }

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

            return(new SecP521R1Point(Curve, RawXCoord, RawYCoord.Negate(), RawZCoords));
        }
示例#4
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));
        }