Home
last modified time | relevance | path

Searched refs:withCompression (Results 1 – 25 of 25) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECPoint.java49 protected boolean withCompression; field in ECPoint
282 …e().createRawPoint(getRawXCoord().multiply(sx), getRawYCoord().multiply(sy), this.withCompression); in createScaledPoint()
295 return this.withCompression; in isCompressed()
328 …ateRawPoint(getRawXCoord().multiply(scale), getRawYCoord(), getRawZCoords(), this.withCompression); in scaleX()
335 …ateRawPoint(getRawXCoord(), getRawYCoord().multiply(scale), getRawZCoords(), this.withCompression); in scaleY()
446 return getEncoded(this.withCompression); in getEncoded()
628 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in Fp() argument
637 this.withCompression = withCompression; in Fp()
640 …Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in Fp() argument
644 this.withCompression = withCompression; in Fp()
[all …]
DECCurve.java128 public ECPoint validatePoint(BigInteger x, BigInteger y, boolean withCompression) in validatePoint() argument
130 ECPoint p = createPoint(x, y, withCompression); in validatePoint()
147 public ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression) in createPoint() argument
149 return createRawPoint(fromBigInteger(x), fromBigInteger(y), withCompression); in createPoint()
154 …ected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression); in createRawPoint() argument
156 …t createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression); in createRawPoint() argument
223 …eturn validatePoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression); in importPoint()
619 … protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
621 return new ECPoint.Fp(this, x, y, withCompression); in createRawPoint()
624 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP192K1Point.java43 … public SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP192K1Point() argument
52 this.withCompression = withCompression; in SecP192K1Point()
56 boolean withCompression) in SecP192K1Point() argument
60 this.withCompression = withCompression; in SecP192K1Point()
191 return new SecP192K1Point(curve, X3, Y3, zs, this.withCompression); in add()
251 return new SecP192K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
296 return new SecP192K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP256K1Point.java43 … public SecP256K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP256K1Point() argument
52 this.withCompression = withCompression; in SecP256K1Point()
56 boolean withCompression) in SecP256K1Point() argument
60 this.withCompression = withCompression; in SecP256K1Point()
191 return new SecP256K1Point(curve, X3, Y3, zs, this.withCompression); in add()
251 return new SecP256K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
296 return new SecP256K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP224K1Point.java43 … public SecP224K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP224K1Point() argument
52 this.withCompression = withCompression; in SecP224K1Point()
56 boolean withCompression) in SecP224K1Point() argument
60 this.withCompression = withCompression; in SecP224K1Point()
191 return new SecP224K1Point(curve, X3, Y3, zs, this.withCompression); in add()
251 return new SecP224K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
296 return new SecP224K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP192R1Point.java43 … public SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP192R1Point() argument
52 this.withCompression = withCompression; in SecP192R1Point()
55 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP192R1Point() argument
59 this.withCompression = withCompression; in SecP192R1Point()
190 return new SecP192R1Point(curve, X3, Y3, zs, this.withCompression); in add()
263 return new SecP192R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
308 return new SecP192R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP256R1Point.java43 … public SecP256R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP256R1Point() argument
52 this.withCompression = withCompression; in SecP256R1Point()
55 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP256R1Point() argument
59 this.withCompression = withCompression; in SecP256R1Point()
189 return new SecP256R1Point(curve, X3, Y3, zs, this.withCompression); in add()
261 return new SecP256R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
306 return new SecP256R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP224R1Point.java43 … public SecP224R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP224R1Point() argument
52 this.withCompression = withCompression; in SecP224R1Point()
55 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP224R1Point() argument
59 this.withCompression = withCompression; in SecP224R1Point()
189 return new SecP224R1Point(curve, X3, Y3, zs, this.withCompression); in add()
261 return new SecP224R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
306 return new SecP224R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP384R1Point.java43 … public SecP384R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP384R1Point() argument
52 this.withCompression = withCompression; in SecP384R1Point()
55 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP384R1Point() argument
59 this.withCompression = withCompression; in SecP384R1Point()
190 return new SecP384R1Point(curve, X3, Y3, zs, this.withCompression); in add()
262 return new SecP384R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
307 return new SecP384R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP521R1Curve.java66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
68 return new SecP521R1Point(this, x, y, withCompression); in createRawPoint()
71 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
73 return new SecP521R1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP224R1Curve.java66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
68 return new SecP224R1Point(this, x, y, withCompression); in createRawPoint()
71 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
73 return new SecP224R1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP192K1Curve.java65 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
67 return new SecP192K1Point(this, x, y, withCompression); in createRawPoint()
70 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
72 return new SecP192K1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP224K1Curve.java64 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
66 return new SecP224K1Point(this, x, y, withCompression); in createRawPoint()
69 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
71 return new SecP224K1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP192R1Curve.java66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
68 return new SecP192R1Point(this, x, y, withCompression); in createRawPoint()
71 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
73 return new SecP192R1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP256K1Curve.java64 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
66 return new SecP256K1Point(this, x, y, withCompression); in createRawPoint()
69 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
71 return new SecP256K1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP384R1Curve.java66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
68 return new SecP384R1Point(this, x, y, withCompression); in createRawPoint()
71 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
73 return new SecP384R1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP256R1Curve.java66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint() argument
68 return new SecP256R1Point(this, x, y, withCompression); in createRawPoint()
71 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in createRawPoint() argument
73 return new SecP256R1Point(this, x, y, zs, withCompression); in createRawPoint()
DSecP521R1Point.java42 … public SecP521R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP521R1Point() argument
51 this.withCompression = withCompression; in SecP521R1Point()
54 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP521R1Point() argument
58 this.withCompression = withCompression; in SecP521R1Point()
185 return new SecP521R1Point(curve, X3, Y3, zs, this.withCompression); in add()
256 return new SecP521R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
331 return new SecP521R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPublicKey.java57 private boolean withCompression; field in JCEECPublicKey
69 this.withCompression = key.withCompression; in JCEECPublicKey()
401 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getEncoded()
411 …oord().toBigInteger(), this.getQ().getAffineYCoord().toBigInteger(), withCompression)).toASN1Primi… in getEncoded()
447 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
474 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
495 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
524 this.withCompression = in.readBoolean(); in readObject()
533 out.writeBoolean(withCompression); in writeObject()
DJCEECPrivateKey.java50 private boolean withCompression; field in JCEECPrivateKey
107 this.withCompression = key.withCompression; in JCEECPrivateKey()
316 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getEncoded()
370 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
377 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
413 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
468 this.withCompression = in.readBoolean(); in readObject()
480 out.writeBoolean(withCompression); in writeObject()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java40 private boolean withCompression; field in BCECPublicKey
53 this.withCompression = key.withCompression; in BCECPublicKey()
240 ASN1Encodable params = ECUtils.getDomainParametersFromName(ecSpec, withCompression); in getEncoded()
241 …ng p = ASN1OctetString.getInstance(new X9ECPoint(ecPublicKey.getQ(), withCompression).toASN1Primit… in getEncoded()
261 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
292 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
314 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
DBCECPrivateKey.java43 private boolean withCompression; field in BCECPrivateKey
110 this.withCompression = key.withCompression; in BCECPrivateKey()
260 X962Parameters params = ECUtils.getDomainParametersFromName(ecSpec, withCompression); in getEncoded()
308 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
315 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
351 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
DECUtils.java63 … static X962Parameters getDomainParametersFromName(ECParameterSpec ecSpec, boolean withCompression) in getDomainParametersFromName() argument
86 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getDomainParametersFromName()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java284 boolean withCompression) in convertSpec() argument
290 convertPoint(curve, ecSpec.getGenerator(), withCompression), in convertSpec()
299 boolean withCompression) in convertPoint() argument
301 return convertPoint(convertCurve(ecSpec.getCurve()), point, withCompression); in convertPoint()
307 boolean withCompression) in convertPoint() argument
/external/bouncycastle/patches/
Dbcprov.patch8481 private boolean withCompression;
8492 this.withCompression = key.withCompression;
8628 - EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression),
8675 + // EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression),