Home
last modified time | relevance | path

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

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECPoint.java49 protected boolean withCompression; field in ECPoint
263 …e().createRawPoint(getRawXCoord().multiply(sx), getRawYCoord().multiply(sy), this.withCompression); in createScaledPoint()
276 return this.withCompression; in isCompressed()
339 …ateRawPoint(getRawXCoord().multiply(scale), getRawYCoord(), getRawZCoords(), this.withCompression); in scaleX()
346 …ateRawPoint(getRawXCoord(), getRawYCoord().multiply(scale), getRawZCoords(), this.withCompression); in scaleY()
458 return getEncoded(this.withCompression); in getEncoded()
626 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in Fp() argument
635 this.withCompression = withCompression; in Fp()
638 …Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in Fp() argument
642 this.withCompression = withCompression; in Fp()
[all …]
DECCurve.java129 public ECPoint validatePoint(BigInteger x, BigInteger y, boolean withCompression) in validatePoint() argument
131 ECPoint p = createPoint(x, y, withCompression); in validatePoint()
148 public ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression) in createPoint() argument
150 return createRawPoint(fromBigInteger(x), fromBigInteger(y), withCompression); in createPoint()
155 …ected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression); in createRawPoint() argument
157 …t createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression); in createRawPoint() argument
249 … return createPoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression); in importPoint()
706 … protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression)
708 return new ECPoint.Fp(this, x, y, withCompression);
711 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression)
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECPoint.java51 protected boolean withCompression; field in ECPoint
265 …e().createRawPoint(getRawXCoord().multiply(sx), getRawYCoord().multiply(sy), this.withCompression); in createScaledPoint()
278 return this.withCompression; in isCompressed()
341 …ateRawPoint(getRawXCoord().multiply(scale), getRawYCoord(), getRawZCoords(), this.withCompression); in scaleX()
348 …ateRawPoint(getRawXCoord(), getRawYCoord().multiply(scale), getRawZCoords(), this.withCompression); in scaleY()
460 return getEncoded(this.withCompression); in getEncoded()
632 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in Fp() argument
641 this.withCompression = withCompression; in Fp()
644 …Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in Fp() argument
648 this.withCompression = withCompression; in Fp()
[all …]
DECCurve.java134 public ECPoint validatePoint(BigInteger x, BigInteger y, boolean withCompression) in validatePoint() argument
136 ECPoint p = createPoint(x, y, withCompression); in validatePoint()
153 public ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression) in createPoint() argument
155 return createRawPoint(fromBigInteger(x), fromBigInteger(y), withCompression); in createPoint()
160 …ected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression); in createRawPoint() argument
162 …t createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression); in createRawPoint() argument
254 … return createPoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression); in importPoint()
715 … protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression)
717 return new ECPoint.Fp(this, x, y, withCompression);
720 …nt createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression)
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
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()
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()
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()
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()
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()
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()
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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/custom/sec/
DSecP384R1Point.java47 … public SecP384R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP384R1Point() argument
56 this.withCompression = withCompression; in SecP384R1Point()
59 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP384R1Point() argument
63 this.withCompression = withCompression; in SecP384R1Point()
194 return new SecP384R1Point(curve, X3, Y3, zs, this.withCompression); in add()
266 return new SecP384R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
311 return new SecP384R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP256K1Point.java47 … public SecP256K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP256K1Point() argument
56 this.withCompression = withCompression; in SecP256K1Point()
60 boolean withCompression) in SecP256K1Point() argument
64 this.withCompression = withCompression; in SecP256K1Point()
195 return new SecP256K1Point(curve, X3, Y3, zs, this.withCompression); in add()
255 return new SecP256K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
300 return new SecP256K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP224K1Point.java47 … public SecP224K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP224K1Point() argument
56 this.withCompression = withCompression; in SecP224K1Point()
60 boolean withCompression) in SecP224K1Point() argument
64 this.withCompression = withCompression; in SecP224K1Point()
195 return new SecP224K1Point(curve, X3, Y3, zs, this.withCompression); in add()
255 return new SecP224K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
300 return new SecP224K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP192K1Point.java47 … public SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP192K1Point() argument
56 this.withCompression = withCompression; in SecP192K1Point()
60 boolean withCompression) in SecP192K1Point() argument
64 this.withCompression = withCompression; in SecP192K1Point()
195 return new SecP192K1Point(curve, X3, Y3, zs, this.withCompression); in add()
255 return new SecP192K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
300 return new SecP192K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP192R1Point.java47 … public SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP192R1Point() argument
56 this.withCompression = withCompression; in SecP192R1Point()
59 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP192R1Point() argument
63 this.withCompression = withCompression; in SecP192R1Point()
194 return new SecP192R1Point(curve, X3, Y3, zs, this.withCompression); in add()
267 return new SecP192R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
312 return new SecP192R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP224R1Point.java47 … public SecP224R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP224R1Point() argument
56 this.withCompression = withCompression; in SecP224R1Point()
59 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP224R1Point() argument
63 this.withCompression = withCompression; in SecP224R1Point()
193 return new SecP224R1Point(curve, X3, Y3, zs, this.withCompression); in add()
265 return new SecP224R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
310 return new SecP224R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP256R1Point.java47 … public SecP256R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP256R1Point() argument
56 this.withCompression = withCompression; in SecP256R1Point()
59 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP256R1Point() argument
63 this.withCompression = withCompression; in SecP256R1Point()
193 return new SecP256R1Point(curve, X3, Y3, zs, this.withCompression); in add()
265 return new SecP256R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
310 return new SecP256R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); in negate()
DSecP521R1Point.java46 … public SecP521R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP521R1Point() argument
55 this.withCompression = withCompression; in SecP521R1Point()
58 …nt(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) in SecP521R1Point() argument
62 this.withCompression = withCompression; in SecP521R1Point()
189 return new SecP521R1Point(curve, X3, Y3, zs, this.withCompression); in add()
260 return new SecP521R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
335 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.java54 private boolean withCompression; field in JCEECPublicKey
65 this.withCompression = key.withCompression; in JCEECPublicKey()
388 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getEncoded()
398 …oord().toBigInteger(), this.getQ().getAffineYCoord().toBigInteger(), withCompression)).toASN1Primi… in getEncoded()
434 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
461 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
482 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
511 this.withCompression = in.readBoolean(); in readObject()
520 out.writeBoolean(withCompression); in writeObject()
DJCEECPrivateKey.java49 private boolean withCompression; field in JCEECPrivateKey
106 this.withCompression = key.withCompression; in JCEECPrivateKey()
303 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getEncoded()
357 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
364 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
400 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
455 this.withCompression = in.readBoolean(); in readObject()
467 out.writeBoolean(withCompression); in writeObject()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java39 private boolean withCompression; field in BCECPublicKey
52 this.withCompression = key.withCompression; in BCECPublicKey()
237 ASN1Encodable params = ECUtils.getDomainParametersFromName(ecSpec, withCompression); in getEncoded()
238 …ng p = ASN1OctetString.getInstance(new X9ECPoint(ecPublicKey.getQ(), withCompression).toASN1Primit… in getEncoded()
258 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
287 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
300 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DJCEECPublicKey.java58 private boolean withCompression; field in JCEECPublicKey
69 this.withCompression = key.withCompression; in JCEECPublicKey()
392 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getEncoded()
402 …oord().toBigInteger(), this.getQ().getAffineYCoord().toBigInteger(), withCompression)).toASN1Primi… in getEncoded()
438 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
465 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
486 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()
515 this.withCompression = in.readBoolean(); in readObject()
524 out.writeBoolean(withCompression); in writeObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java43 private boolean withCompression; field in BCECPublicKey
56 this.withCompression = key.withCompression; in BCECPublicKey()
241 ASN1Encodable params = ECUtils.getDomainParametersFromName(ecSpec, withCompression); in getEncoded()
242 …ng p = ASN1OctetString.getInstance(new X9ECPoint(ecPublicKey.getQ(), withCompression).toASN1Primit… in getEncoded()
262 return EC5Util.convertSpec(ecSpec, withCompression); in getParameters()
291 return EC5Util.convertSpec(ecSpec, withCompression); in engineGetSpec()
304 withCompression = !("UNCOMPRESSED".equalsIgnoreCase(style)); in setPointFormat()

123