Home
last modified time | relevance | path

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

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java92 ecP.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
93 ecP.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
112 ecP.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
113 ecP.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
122 ecP.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
123 ecP.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
137 domainParameters.getG().getAffineXCoord().toBigInteger(), in convertToSpec()
138 domainParameters.getG().getAffineYCoord().toBigInteger()), in convertToSpec()
148 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
207 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/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java87 …rve).createPoint(spec.getQ().getAffineXCoord().toBigInteger(), spec.getQ().getAffineYCoord().toBig… in BCECPublicKey()
96 … q = s.getCurve().createPoint(q.getXCoord().toBigInteger(), q.getYCoord().toBigInteger(), false); in BCECPublicKey()
152 …).createPoint(params.getQ().getAffineXCoord().toBigInteger(), params.getQ().getAffineYCoord().toBi… in BCECPublicKey()
195 dp.getG().getAffineXCoord().toBigInteger(), in createSpec()
196 dp.getG().getAffineYCoord().toBigInteger()), in createSpec()
286 …ECPoint(curve.createPoint(this.getQ().getXCoord().toBigInteger(), this.getQ().getYCoord().toBigInt… in getEncoded()
291 …urve.createPoint(this.getQ().getAffineXCoord().toBigInteger(), this.getQ().getAffineYCoord().toBig… in getEncoded()
332 return new ECPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger()); in getW()
366 …buf.append(" X: ").append(this.q.getAffineXCoord().toBigInteger().toString(16)).append(… in toString()
367 …buf.append(" Y: ").append(this.q.getAffineYCoord().toBigInteger().toString(16)).append(… in toString()
DBCECPrivateKey.java139 dp.getG().getAffineXCoord().toBigInteger(), in BCECPrivateKey()
140 dp.getG().getAffineYCoord().toBigInteger()), in BCECPrivateKey()
172 dp.getG().getAffineXCoord().toBigInteger(), in BCECPrivateKey()
173 dp.getG().getAffineYCoord().toBigInteger()), in BCECPrivateKey()
/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()
70 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/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()
DSecP192K1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP192K1FieldElement
53 return Nat192.toBigInteger(x); in toBigInteger()
DSecP256K1FieldElement.java51 public BigInteger toBigInteger() in toBigInteger() method in SecP256K1FieldElement
53 return Nat256.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/
DDiagBigDecimal.java4294 …(new Test("tbi001")).ok=((new android.icu.math.BigDecimal("-1")).toBigInteger().toString()).equals… in diagtobiginteger()
4295 …(new Test("tbi002")).ok=((new android.icu.math.BigDecimal("0")).toBigInteger().toString()).equals(… in diagtobiginteger()
4296 …(new Test("tbi003")).ok=((new android.icu.math.BigDecimal("+1")).toBigInteger().toString()).equals… in diagtobiginteger()
4297 …(new Test("tbi004")).ok=((new android.icu.math.BigDecimal("10")).toBigInteger().toString()).equals… in diagtobiginteger()
4298 …(new Test("tbi005")).ok=((new android.icu.math.BigDecimal("1000")).toBigInteger().toString()).equa… in diagtobiginteger()
4299 …(new Test("tbi006")).ok=((new android.icu.math.BigDecimal("-1E+0")).toBigInteger().toString()).equ… in diagtobiginteger()
4300 …(new Test("tbi007")).ok=((new android.icu.math.BigDecimal("0E+0")).toBigInteger().toString()).equa… in diagtobiginteger()
4301 …(new Test("tbi008")).ok=((new android.icu.math.BigDecimal("+1E+0")).toBigInteger().toString()).equ… in diagtobiginteger()
4302 …(new Test("tbi009")).ok=((new android.icu.math.BigDecimal("10E+0")).toBigInteger().toString()).equ… in diagtobiginteger()
4303 …(new Test("tbi010")).ok=((new android.icu.math.BigDecimal("1E+3")).toBigInteger().toString()).equa… in diagtobiginteger()
[all …]
/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