Home
last modified time | relevance | path

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

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java88 …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 …]
DBCECPrivateKey.java138 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/
DEC5Util.java49 …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/
DECNamedCurveSpec.java27 …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/
DECFieldElement.java14 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 …]
DECCurve.java217 …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()
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()
DTnaf.java536 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/
DJCEECPublicKey.java103 …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 …]
DJCEECPrivateKey.java129 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/
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()
DSecP192R1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP192R1FieldElement
53 return Nat192.toBigInteger(x); in toBigInteger()
DSecP256R1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP256R1FieldElement
53 return Nat256.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.java116 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/
DECDHBasicAgreement.java52 return P.getAffineXCoord().toBigInteger(); in calculateAgreement()
/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java68 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/
DDiagBigDecimal.java4290 …(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 …]

12