/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | ECFieldElement.java | 14 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 …]
|
D | ECCurve.java | 249 … 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 …]
|
D | WTauNafMultiplier.java | 33 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/ |
D | ECFieldElement.java | 18 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 …]
|
D | ECCurve.java | 254 … 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 …]
|
D | WTauNafMultiplier.java | 35 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/ |
D | TimeUtil.java | 438 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/ |
D | JCEECPublicKey.java | 99 …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/ |
D | JCEECPublicKey.java | 103 …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/ |
D | EC5Util.java | 215 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve() 335 point.getAffineXCoord().toBigInteger(), in convertPoint() 336 point.getAffineYCoord().toBigInteger()); in convertPoint()
|
D | ECUtil.java | 391 … 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/ |
D | EC5Util.java | 219 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve() 339 point.getAffineXCoord().toBigInteger(), in convertPoint() 340 point.getAffineYCoord().toBigInteger()); in convertPoint()
|
D | ECUtil.java | 393 … 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/ |
D | ECNamedCurveSpec.java | 32 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/spec/ |
D | ECNamedCurveSpec.java | 34 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger(); in convertCurve()
|
/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 | SecP256R1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP256R1FieldElement 53 return Nat256.toBigInteger(x); in toBigInteger()
|
D | SecP192R1FieldElement.java | 51 public BigInteger toBigInteger() in toBigInteger() method in SecP192R1FieldElement 53 return Nat192.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 | SecP192K1FieldElement.java | 51 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/ |
D | SecP521R1FieldElement.java | 55 public BigInteger toBigInteger() in toBigInteger() method in SecP521R1FieldElement 57 return Nat.toBigInteger(17, x); in toBigInteger()
|
D | SecP192R1FieldElement.java | 55 public BigInteger toBigInteger() in toBigInteger() method in SecP192R1FieldElement 57 return Nat192.toBigInteger(x); in toBigInteger()
|
D | SecP256R1FieldElement.java | 55 public BigInteger toBigInteger() in toBigInteger() method in SecP256R1FieldElement 57 return Nat256.toBigInteger(x); in toBigInteger()
|
D | SecP256K1FieldElement.java | 55 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/ |
D | ECDSASigner.java | 124 r = p.getAffineXCoord().toBigInteger().mod(n); in generateSignature() 215 BigInteger v = point.normalize().getAffineXCoord().toBigInteger().mod(n); in verifySignature()
|