/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | BCECPublicKey.java | 88 …rve).createPoint(spec.getQ().getAffineXCoord().toBigInteger(), spec.getQ().getAffineYCoord().toBig… in BCECPublicKey() 97 … q = s.getCurve().createPoint(q.getXCoord().toBigInteger(), q.getYCoord().toBigInteger(), false); in BCECPublicKey() 153 …).createPoint(params.getQ().getAffineXCoord().toBigInteger(), params.getQ().getAffineYCoord().toBi… in BCECPublicKey() 196 dp.getG().getAffineXCoord().toBigInteger(), in createSpec() 197 dp.getG().getAffineYCoord().toBigInteger()), in createSpec() 220 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPubKeyInfo() 221 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPubKeyInfo() 240 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPubKeyInfo() 241 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPubKeyInfo() 324 …ECPoint(curve.createPoint(this.getQ().getXCoord().toBigInteger(), this.getQ().getYCoord().toBigInt… in getEncoded() [all …]
|
D | BCECPrivateKey.java | 138 dp.getG().getAffineXCoord().toBigInteger(), in BCECPrivateKey() 139 dp.getG().getAffineYCoord().toBigInteger()), in BCECPrivateKey() 171 dp.getG().getAffineXCoord().toBigInteger(), in BCECPrivateKey() 172 dp.getG().getAffineYCoord().toBigInteger()), in BCECPrivateKey() 223 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPrivKeyInfo() 224 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPrivKeyInfo() 240 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPrivKeyInfo() 241 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPrivKeyInfo()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | EC5Util.java | 49 …dFp(curve.getField().getCharacteristic()), curve.getA().toBigInteger(), curve.getB().toBigInteger(… in convertCurve() 60 …Curve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(… in convertCurve() 66 …Curve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(… in convertCurve() 108 spec.getG().getAffineXCoord().toBigInteger(), in convertSpec() 109 spec.getG().getAffineYCoord().toBigInteger()), in convertSpec() 118 spec.getG().getAffineXCoord().toBigInteger(), in convertSpec() 119 spec.getG().getAffineYCoord().toBigInteger()), in convertSpec()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/ |
D | ECNamedCurveSpec.java | 27 …dFp(curve.getField().getCharacteristic()), curve.getA().toBigInteger(), curve.getB().toBigInteger(… in convertCurve() 38 …Curve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(… in convertCurve() 44 …Curve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(… in convertCurve() 54 return new ECPoint(g.getAffineXCoord().toBigInteger(), g.getAffineYCoord().toBigInteger()); in convertPoint()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | ECFieldElement.java | 14 public abstract BigInteger toBigInteger(); in toBigInteger() method in ECFieldElement 29 return toBigInteger().bitLength(); in bitLength() 39 return 0 == toBigInteger().signum(); in isZero() 64 return toBigInteger().testBit(0); in testBitZero() 69 return this.toBigInteger().toString(16); in toString() 74 return BigIntegers.asUnsignedByteArray((getFieldSize() + 7) / 8, toBigInteger()); in getEncoded() 115 public BigInteger toBigInteger() in toBigInteger() method in ECFieldElement.Fp 142 return new Fp(q, r, modAdd(x, b.toBigInteger())); in add() 157 return new Fp(q, r, modSubtract(x, b.toBigInteger())); in subtract() 162 return new Fp(q, r, modMult(x, b.toBigInteger())); in multiply() [all …]
|
D | ECCurve.java | 217 …return validatePoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression… in importPoint() 477 && getA().toBigInteger().equals(other.getA().toBigInteger()) in equals() 478 && getB().toBigInteger().equals(other.getB().toBigInteger())); in equals() 489 ^ Integers.rotateLeft(getA().toBigInteger().hashCode(), 8) in hashCode() 490 ^ Integers.rotateLeft(getB().toBigInteger().hashCode(), 16); in hashCode() 628 fromBigInteger(p.x.toBigInteger()), in importPoint() 629 fromBigInteger(p.y.toBigInteger()), in importPoint() 630 new ECFieldElement[]{ fromBigInteger(p.zs[0].toBigInteger()) }, in importPoint()
|
D | WTauNafMultiplier.java | 33 byte a = curve.getA().toBigInteger().byteValue(); in multiplyPositive() 77 byte a = curve.getA().toBigInteger().byteValue(); in multiplyFromWTnaf()
|
D | WNafUtil.java | 452 … twiceP = c.createPoint(twiceP.getXCoord().toBigInteger(), twiceP.getYCoord() in precompute() 453 .toBigInteger()); in precompute()
|
D | Tnaf.java | 536 int a = curve.getA().toBigInteger().intValue(); in getSi() 630 byte a = (byte) curve.getA().toBigInteger().intValue(); in multiplyRTnaf()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | JCEECPublicKey.java | 103 …q = s.getCurve().createPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger(… in JCEECPublicKey() 172 dp.getG().getAffineXCoord().toBigInteger(), in createSpec() 173 dp.getG().getAffineYCoord().toBigInteger()), in createSpec() 260 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPubKeyInfo() 261 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPubKeyInfo() 280 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPubKeyInfo() 281 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPubKeyInfo() 409 …urve.createPoint(this.getQ().getAffineXCoord().toBigInteger(), this.getQ().getAffineYCoord().toBig… in getEncoded() 450 return new ECPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger()); in getW() 484 …buf.append(" X: ").append(this.q.getAffineXCoord().toBigInteger().toString(16)).append(… in toString() [all …]
|
D | JCEECPrivateKey.java | 129 dp.getG().getAffineXCoord().toBigInteger(), in JCEECPrivateKey() 130 dp.getG().getAffineYCoord().toBigInteger()), in JCEECPrivateKey() 160 dp.getG().getAffineXCoord().toBigInteger(), in JCEECPrivateKey() 161 dp.getG().getAffineYCoord().toBigInteger()), in JCEECPrivateKey() 172 spec.getG().getAffineXCoord().toBigInteger(), in JCEECPrivateKey() 173 spec.getG().getAffineYCoord().toBigInteger()), in JCEECPrivateKey() 231 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPrivKeyInfo() 232 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPrivKeyInfo() 249 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPrivKeyInfo() 250 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPrivKeyInfo()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/ |
D | X9Curve.java | 58 curve = new ECCurve.Fp(p, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger()); in X9Curve() 92 …curve = new ECCurve.F2m(m, k1, k2, k3, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger(… in X9Curve()
|
D | X9FieldElement.java | 60 byte[] paddedBigInteger = converter.integerToBytes(f.toBigInteger(), byteCount); in toASN1Primitive()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
D | SecP521R1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP521R1FieldElement 53 return Nat.toBigInteger(17, x); in toBigInteger()
|
D | SecP192R1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP192R1FieldElement 53 return Nat192.toBigInteger(x); in toBigInteger()
|
D | SecP256R1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP256R1FieldElement 53 return Nat256.toBigInteger(x); in toBigInteger()
|
D | SecP384R1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP384R1FieldElement 53 return Nat.toBigInteger(12, x); in toBigInteger()
|
D | SecP256K1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP256K1FieldElement 53 return Nat256.toBigInteger(x); in toBigInteger()
|
D | SecP192K1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP192K1FieldElement 53 return Nat192.toBigInteger(x); in toBigInteger()
|
D | SecP224K1FieldElement.java | 55 public BigInteger toBigInteger() in toBigInteger() method in SecP224K1FieldElement 57 return Nat224.toBigInteger(x); in toBigInteger()
|
D | SecP224R1FieldElement.java | 52 public BigInteger toBigInteger() in toBigInteger() method in SecP224R1FieldElement 54 return Nat224.toBigInteger(x); in toBigInteger()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
D | ECDSASigner.java | 116 r = p.getAffineXCoord().toBigInteger().mod(n); in generateSignature() 170 BigInteger v = point.getAffineXCoord().toBigInteger().mod(n); in verifySignature()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/ |
D | ECDHBasicAgreement.java | 52 return P.getAffineXCoord().toBigInteger(); in calculateAgreement()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 68 BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); in testConstantsMaxFactorial() 259 assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d, mode)); in testRoundIntegralDoubleToBigInteger() 269 assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d, mode)); in testRoundFractionalDoubleToBigInteger() 278 assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d, UNNECESSARY)); in testRoundExactIntegralDoubleToBigInteger()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/ |
D | DiagBigDecimal.java | 4290 …(new Test("tbi001")).ok=((new com.ibm.icu.math.BigDecimal("-1")).toBigInteger().toString()).equals… in diagtobiginteger() 4291 …(new Test("tbi002")).ok=((new com.ibm.icu.math.BigDecimal("0")).toBigInteger().toString()).equals(… in diagtobiginteger() 4292 …(new Test("tbi003")).ok=((new com.ibm.icu.math.BigDecimal("+1")).toBigInteger().toString()).equals… in diagtobiginteger() 4293 …(new Test("tbi004")).ok=((new com.ibm.icu.math.BigDecimal("10")).toBigInteger().toString()).equals… in diagtobiginteger() 4294 …(new Test("tbi005")).ok=((new com.ibm.icu.math.BigDecimal("1000")).toBigInteger().toString()).equa… in diagtobiginteger() 4295 …(new Test("tbi006")).ok=((new com.ibm.icu.math.BigDecimal("-1E+0")).toBigInteger().toString()).equ… in diagtobiginteger() 4296 …(new Test("tbi007")).ok=((new com.ibm.icu.math.BigDecimal("0E+0")).toBigInteger().toString()).equa… in diagtobiginteger() 4297 …(new Test("tbi008")).ok=((new com.ibm.icu.math.BigDecimal("+1E+0")).toBigInteger().toString()).equ… in diagtobiginteger() 4298 …(new Test("tbi009")).ok=((new com.ibm.icu.math.BigDecimal("10E+0")).toBigInteger().toString()).equ… in diagtobiginteger() 4299 …(new Test("tbi010")).ok=((new com.ibm.icu.math.BigDecimal("1E+3")).toBigInteger().toString()).equa… in diagtobiginteger() [all …]
|