protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) { return new SM2P256V1Point(this, x, y, withCompression); }
protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) { return new SM2P256V1Point(this, x, y, zs, withCompression); }
public ECPoint negate() { if (this.isInfinity()) { return this; } return new SM2P256V1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); } }
protected ECPoint detach() { return new SM2P256V1Point(null, getAffineXCoord(), getAffineYCoord()); }
public SM2P256V1Curve() { super(q); this.infinity = new SM2P256V1Point(this, null, null); this.a = fromBigInteger(new BigInteger(1, Hex.decode("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC"))); this.b = fromBigInteger(new BigInteger(1, Hex.decode("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93"))); this.order = new BigInteger(1, Hex.decode("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123")); this.cofactor = BigInteger.valueOf(1); this.coord = SM2P256V1_DEFAULT_COORDS; }
return new SM2P256V1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression);
return new SM2P256V1Point(curve, X3, Y3, zs, this.withCompression);