Home
last modified time | relevance | path

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

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java150 ecP.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
151 ecP.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
170 ecP.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
171 ecP.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
180 ecP.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
181 ecP.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
195 domainParameters.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
196 domainParameters.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
206 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
265 spec.getG().getAffineXCoord().toBigInteger(), in convertSpec()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java14 public abstract BigInteger toBigInteger(); in toBigInteger() method in ECFieldElement
29 return toBigInteger().bitLength(); in bitLength()
39 return 0 == toBigInteger().signum(); in isZero()
74 return toBigInteger().testBit(0); in testBitZero()
79 return this.toBigInteger().toString(16); in toString()
84 return BigIntegers.asUnsignedByteArray((getFieldSize() + 7) / 8, toBigInteger()); in getEncoded()
125 public BigInteger toBigInteger() in toBigInteger() method in ECFieldElement.Fp
152 return new Fp(q, r, modAdd(x, b.toBigInteger())); in add()
167 return new Fp(q, r, modSubtract(x, b.toBigInteger())); in subtract()
172 return new Fp(q, r, modMult(x, b.toBigInteger())); in multiply()
[all …]
DECCurve.java223 …return validatePoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression… in importPoint()
483 && getA().toBigInteger().equals(other.getA().toBigInteger()) in equals()
484 && getB().toBigInteger().equals(other.getB().toBigInteger())); in equals()
495 ^ Integers.rotateLeft(getA().toBigInteger().hashCode(), 8) in hashCode()
496 ^ Integers.rotateLeft(getB().toBigInteger().hashCode(), 16); in hashCode()
639 fromBigInteger(p.x.toBigInteger()), in importPoint()
640 fromBigInteger(p.y.toBigInteger()), in importPoint()
641 new ECFieldElement[]{ fromBigInteger(p.zs[0].toBigInteger()) }, in importPoint()
661 return new LongArray(x).modInverse(m, ks).toBigInteger(); in inverse()
DWTauNafMultiplier.java33 byte a = curve.getA().toBigInteger().byteValue(); in multiplyPositive()
77 byte a = curve.getA().toBigInteger().byteValue(); in multiplyFromWTnaf()
DWNafUtil.java452 … twiceP = c.createPoint(twiceP.getXCoord().toBigInteger(), twiceP.getYCoord() in precompute()
453 .toBigInteger()); in precompute()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
DECDHBasicAgreement.java54 myCurve.validatePoint(peerPoint.getXCoord().toBigInteger(), in calculateAgreement()
55 peerPoint.getYCoord().toBigInteger()); in calculateAgreement()
60 ECPoint pubPoint = myCurve.createPoint(peerPoint.getXCoord().toBigInteger(), in calculateAgreement()
61 peerPoint.getYCoord().toBigInteger()); in calculateAgreement()
75 return P.getAffineXCoord().toBigInteger(); in calculateAgreement()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPublicKey.java104 …q = s.getCurve().createPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger(… in JCEECPublicKey()
173 dp.getG().getAffineXCoord().toBigInteger(), in createSpec()
174 dp.getG().getAffineYCoord().toBigInteger()), in createSpec()
262 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPubKeyInfo()
263 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPubKeyInfo()
282 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPubKeyInfo()
283 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPubKeyInfo()
411 …urve.createPoint(this.getQ().getAffineXCoord().toBigInteger(), this.getQ().getAffineYCoord().toBig… in getEncoded()
452 return new ECPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger()); in getW()
486 …buf.append(" X: ").append(this.q.getAffineXCoord().toBigInteger().toString(16)).append(… in toString()
[all …]
DJCEECPrivateKey.java130 dp.getG().getAffineXCoord().toBigInteger(), in JCEECPrivateKey()
131 dp.getG().getAffineYCoord().toBigInteger()), in JCEECPrivateKey()
161 dp.getG().getAffineXCoord().toBigInteger(), in JCEECPrivateKey()
162 dp.getG().getAffineYCoord().toBigInteger()), in JCEECPrivateKey()
173 spec.getG().getAffineXCoord().toBigInteger(), in JCEECPrivateKey()
174 spec.getG().getAffineYCoord().toBigInteger()), in JCEECPrivateKey()
232 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPrivKeyInfo()
233 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPrivKeyInfo()
250 ecP.getG().getAffineXCoord().toBigInteger(), in populateFromPrivKeyInfo()
251 ecP.getG().getAffineYCoord().toBigInteger()), in populateFromPrivKeyInfo()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java438 toBigInteger(duration).multiply(toBigInteger(times))); in multiply()
443 toBigInteger(duration).divide(toBigInteger(times))); in divide()
447 return toBigInteger(d1).divide(toBigInteger(d2)).longValue(); in divide()
452 toBigInteger(d1).remainder(toBigInteger(d2))); in remainder()
458 private static BigInteger toBigInteger(Duration duration) { in toBigInteger() method in TimeUtil
459 return toBigInteger(duration.getSeconds()) in toBigInteger()
461 .add(toBigInteger(duration.getNanos())); in toBigInteger()
464 private static BigInteger toBigInteger(long value) { in toBigInteger() method in TimeUtil
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java89 …ve().createPoint(spec.getQ().getAffineXCoord().toBigInteger(), spec.getQ().getAffineYCoord().toBig… in BCECPublicKey()
186 dp.getG().getAffineXCoord().toBigInteger(), in createSpec()
187 dp.getG().getAffineYCoord().toBigInteger()), in createSpec()
268 return new ECPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger()); in getW()
305 … buf.append(" X: ").append(q.getAffineXCoord().toBigInteger().toString(16)).append(nl); in toString()
306 … buf.append(" Y: ").append(q.getAffineYCoord().toBigInteger().toString(16)).append(nl); in toString()
DBCECPrivateKey.java136 dp.getG().getAffineXCoord().toBigInteger(), in BCECPrivateKey()
137 dp.getG().getAffineYCoord().toBigInteger()), in BCECPrivateKey()
169 dp.getG().getAffineXCoord().toBigInteger(), in BCECPrivateKey()
170 dp.getG().getAffineYCoord().toBigInteger()), in BCECPrivateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
DECNamedCurveSpec.java31 BigInteger a = curve.getA().toBigInteger(), b = 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/asn1/x9/
DX9Curve.java58 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()
DX9FieldElement.java60 byte[] paddedBigInteger = converter.integerToBytes(f.toBigInteger(), byteCount); in toASN1Primitive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP521R1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP521R1FieldElement
53 return Nat.toBigInteger(17, x); in toBigInteger()
DSecP256R1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP256R1FieldElement
53 return Nat256.toBigInteger(x); in toBigInteger()
DSecP192R1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP192R1FieldElement
53 return Nat192.toBigInteger(x); in toBigInteger()
DSecP384R1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP384R1FieldElement
53 return Nat.toBigInteger(12, x); in toBigInteger()
DSecP256K1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP256K1FieldElement
53 return Nat256.toBigInteger(x); in toBigInteger()
DSecP192K1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP192K1FieldElement
53 return Nat192.toBigInteger(x); in toBigInteger()
DSecP224K1FieldElement.java55 public BigInteger toBigInteger() in toBigInteger() method in SecP224K1FieldElement
57 return Nat224.toBigInteger(x); in toBigInteger()
DSecP224R1FieldElement.java52 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/
DECDSASigner.java118 r = p.getAffineXCoord().toBigInteger().mod(n); in generateSignature()
209 BigInteger v = point.normalize().getAffineXCoord().toBigInteger().mod(n); in verifySignature()
/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java69 BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); in testConstantsMaxFactorial()
260 assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d, mode)); in testRoundIntegralDoubleToBigInteger()
270 assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d, mode)); in testRoundFractionalDoubleToBigInteger()
279 assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d, UNNECESSARY)); in testRoundExactIntegralDoubleToBigInteger()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimalTest.java4051 …TestFmwk.assertTrue("tbi001", ((new android.icu.math.BigDecimal("-1")).toBigInteger().toString()).… in diagtobiginteger()
4052 …TestFmwk.assertTrue("tbi002", ((new android.icu.math.BigDecimal("0")).toBigInteger().toString()).e… in diagtobiginteger()
4053 …TestFmwk.assertTrue("tbi003", ((new android.icu.math.BigDecimal("+1")).toBigInteger().toString()).… in diagtobiginteger()
4054 …TestFmwk.assertTrue("tbi004", ((new android.icu.math.BigDecimal("10")).toBigInteger().toString()).… in diagtobiginteger()
4055 …TestFmwk.assertTrue("tbi005", ((new android.icu.math.BigDecimal("1000")).toBigInteger().toString()… in diagtobiginteger()
4056 …TestFmwk.assertTrue("tbi006", ((new android.icu.math.BigDecimal("-1E+0")).toBigInteger().toString(… in diagtobiginteger()
4057 …TestFmwk.assertTrue("tbi007", ((new android.icu.math.BigDecimal("0E+0")).toBigInteger().toString()… in diagtobiginteger()
4058 …TestFmwk.assertTrue("tbi008", ((new android.icu.math.BigDecimal("+1E+0")).toBigInteger().toString(… in diagtobiginteger()
4059 …TestFmwk.assertTrue("tbi009", ((new android.icu.math.BigDecimal("10E+0")).toBigInteger().toString(… in diagtobiginteger()
4060 …TestFmwk.assertTrue("tbi010", ((new android.icu.math.BigDecimal("1E+3")).toBigInteger().toString()… in diagtobiginteger()
[all …]

12