Home
last modified time | relevance | path

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

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java14 public abstract BigInteger toBigInteger(); in toBigInteger() method in ECFieldElement
34 return toBigInteger().bitLength(); in bitLength()
44 return 0 == toBigInteger().signum(); in isZero()
79 return toBigInteger().testBit(0); in testBitZero()
84 return this.toBigInteger().toString(16); in toString()
89 return BigIntegers.asUnsignedByteArray((getFieldSize() + 7) / 8, toBigInteger()); in getEncoded()
134 public BigInteger toBigInteger() in toBigInteger() method in ECFieldElement.Fp
161 return new Fp(q, r, modAdd(x, b.toBigInteger())); in add()
176 return new Fp(q, r, modSubtract(x, b.toBigInteger())); in subtract()
181 return new Fp(q, r, modMult(x, b.toBigInteger())); in multiply()
[all …]
DECCurve.java249 … return createPoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression); in importPoint()
484 byte[] px = p.getRawXCoord().toBigInteger().toByteArray(); in createCacheSafeLookupTable()
485 byte[] py = p.getRawYCoord().toBigInteger().toByteArray(); in createCacheSafeLookupTable()
564 && getA().toBigInteger().equals(other.getA().toBigInteger())
565 && getB().toBigInteger().equals(other.getB().toBigInteger()));
576 ^ Integers.rotateLeft(getA().toBigInteger().hashCode(), 8)
577 ^ Integers.rotateLeft(getB().toBigInteger().hashCode(), 16);
726 fromBigInteger(p.x.toBigInteger()),
727 fromBigInteger(p.y.toBigInteger()),
728 new ECFieldElement[]{ fromBigInteger(p.zs[0].toBigInteger()) },
[all …]
DWTauNafMultiplier.java33 byte a = curve.getA().toBigInteger().byteValue(); in multiplyPositive()
76 final byte a = curve.getA().toBigInteger().byteValue(); in multiplyFromWTnaf()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECFieldElement.java18 public abstract BigInteger toBigInteger(); in toBigInteger() method in ECFieldElement
38 return toBigInteger().bitLength(); in bitLength()
48 return 0 == toBigInteger().signum(); in isZero()
83 return toBigInteger().testBit(0); in testBitZero()
88 return this.toBigInteger().toString(16); in toString()
93 return BigIntegers.asUnsignedByteArray((getFieldSize() + 7) / 8, toBigInteger()); in getEncoded()
144 public BigInteger toBigInteger() in toBigInteger() method in ECFieldElement.Fp
171 return new Fp(q, r, modAdd(x, b.toBigInteger())); in add()
186 return new Fp(q, r, modSubtract(x, b.toBigInteger())); in subtract()
191 return new Fp(q, r, modMult(x, b.toBigInteger())); in multiply()
[all …]
DECCurve.java254 … return createPoint(p.getXCoord().toBigInteger(), p.getYCoord().toBigInteger(), p.withCompression); in importPoint()
489 byte[] px = p.getRawXCoord().toBigInteger().toByteArray(); in createCacheSafeLookupTable()
490 byte[] py = p.getRawYCoord().toBigInteger().toByteArray(); in createCacheSafeLookupTable()
569 && getA().toBigInteger().equals(other.getA().toBigInteger())
570 && getB().toBigInteger().equals(other.getB().toBigInteger()));
581 ^ Integers.rotateLeft(getA().toBigInteger().hashCode(), 8)
582 ^ Integers.rotateLeft(getB().toBigInteger().hashCode(), 16);
735 fromBigInteger(p.x.toBigInteger()),
736 fromBigInteger(p.y.toBigInteger()),
737 new ECFieldElement[]{ fromBigInteger(p.zs[0].toBigInteger()) },
[all …]
DWTauNafMultiplier.java35 byte a = curve.getA().toBigInteger().byteValue(); in multiplyPositive()
78 final byte a = curve.getA().toBigInteger().byteValue(); in multiplyFromWTnaf()
/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/jce/provider/
DJCEECPublicKey.java99 …q = s.getCurve().createPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger(… in JCEECPublicKey()
398 …urve.createPoint(this.getQ().getAffineXCoord().toBigInteger(), this.getQ().getAffineYCoord().toBig… in getEncoded()
473 …buf.append(" X: ").append(this.q.getAffineXCoord().toBigInteger().toString(16)).append(… in toString()
474 …buf.append(" Y: ").append(this.q.getAffineYCoord().toBigInteger().toString(16)).append(… in toString()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DJCEECPublicKey.java103 …q = s.getCurve().createPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger(… in JCEECPublicKey()
402 …urve.createPoint(this.getQ().getAffineXCoord().toBigInteger(), this.getQ().getAffineYCoord().toBig… in getEncoded()
477 …buf.append(" X: ").append(this.q.getAffineXCoord().toBigInteger().toString(16)).append(… in toString()
478 …buf.append(" Y: ").append(this.q.getAffineYCoord().toBigInteger().toString(16)).append(… in toString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java215 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
335 point.getAffineXCoord().toBigInteger(), in convertPoint()
336 point.getAffineYCoord().toBigInteger()); in convertPoint()
DECUtil.java391 … buf.append(" X: ").append(q.getAffineXCoord().toBigInteger().toString(16)).append(nl); in privateKeyToString()
392 … buf.append(" Y: ").append(q.getAffineYCoord().toBigInteger().toString(16)).append(nl); in privateKeyToString()
409 … buf.append(" X: ").append(q.getAffineXCoord().toBigInteger().toString(16)).append(nl); in publicKeyToString()
410 … buf.append(" Y: ").append(q.getAffineYCoord().toBigInteger().toString(16)).append(nl); in publicKeyToString()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java219 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
339 point.getAffineXCoord().toBigInteger(), in convertPoint()
340 point.getAffineYCoord().toBigInteger()); in convertPoint()
DECUtil.java393 … buf.append(" X: ").append(q.getAffineXCoord().toBigInteger().toString(16)).append(nl); in privateKeyToString()
394 … buf.append(" Y: ").append(q.getAffineYCoord().toBigInteger().toString(16)).append(nl); in privateKeyToString()
411 … buf.append(" X: ").append(q.getAffineXCoord().toBigInteger().toString(16)).append(nl); in publicKeyToString()
412 … buf.append(" Y: ").append(q.getAffineYCoord().toBigInteger().toString(16)).append(nl); in publicKeyToString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
DECNamedCurveSpec.java32 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/spec/
DECNamedCurveSpec.java34 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
/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()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/custom/sec/
DSecP521R1FieldElement.java55 public BigInteger toBigInteger() in toBigInteger() method in SecP521R1FieldElement
57 return Nat.toBigInteger(17, x); in toBigInteger()
DSecP192R1FieldElement.java55 public BigInteger toBigInteger() in toBigInteger() method in SecP192R1FieldElement
57 return Nat192.toBigInteger(x); in toBigInteger()
DSecP256R1FieldElement.java55 public BigInteger toBigInteger() in toBigInteger() method in SecP256R1FieldElement
57 return Nat256.toBigInteger(x); in toBigInteger()
DSecP256K1FieldElement.java55 public BigInteger toBigInteger() in toBigInteger() method in SecP256K1FieldElement
57 return Nat256.toBigInteger(x); in toBigInteger()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DECDSASigner.java124 r = p.getAffineXCoord().toBigInteger().mod(n); in generateSignature()
215 BigInteger v = point.normalize().getAffineXCoord().toBigInteger().mod(n); in verifySignature()

123