HomeSort by relevance Sort by last modified time
    Searched refs:BigInteger (Results 126 - 150 of 621) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
ECDomainParameters.java 3 import java.math.BigInteger;
17 private BigInteger n;
18 private BigInteger h;
19 private BigInteger hInv = null;
24 BigInteger n)
32 BigInteger n,
33 BigInteger h)
41 BigInteger n,
42 BigInteger h,
72 public BigInteger getN(
    [all...]
ECNamedDomainParameters.java 3 import java.math.BigInteger;
15 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n)
20 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h)
25 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
AbstractECMultiplier.java 3 import java.math.BigInteger;
7 public ECPoint multiply(ECPoint p, BigInteger k)
25 protected abstract ECPoint multiplyPositive(ECPoint p, BigInteger k);
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
ECDomainParameters.java 4 import java.math.BigInteger;
21 private BigInteger n;
22 private BigInteger h;
23 private BigInteger hInv = null;
28 BigInteger n)
36 BigInteger n,
37 BigInteger h)
45 BigInteger n,
46 BigInteger h,
76 public BigInteger getN(
    [all...]
ECNamedDomainParameters.java 4 import java.math.BigInteger;
19 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n)
24 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h)
29 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
AbstractECMultiplier.java 4 import java.math.BigInteger;
11 public ECPoint multiply(ECPoint p, BigInteger k)
29 protected abstract ECPoint multiplyPositive(ECPoint p, BigInteger k);
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLECGroupContext.java 19 import java.math.BigInteger;
80 final BigInteger p;
89 final BigInteger b = curve.getB();
90 final BigInteger x = generator.getAffineX();
91 final BigInteger y = generator.getAffineY();
134 final BigInteger a = curve.getA();
135 final BigInteger order = params.getOrder();
161 final BigInteger p = new BigInteger(curveParams[0]);
162 final BigInteger a = new BigInteger(curveParams[1])
    [all...]
  /external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
OpenSSLECGroupContext.java 20 import java.math.BigInteger;
81 final BigInteger p;
90 final BigInteger b = curve.getB();
91 final BigInteger x = generator.getAffineX();
92 final BigInteger y = generator.getAffineY();
135 final BigInteger a = curve.getA();
136 final BigInteger order = params.getOrder();
162 final BigInteger p = new BigInteger(curveParams[0]);
163 final BigInteger a = new BigInteger(curveParams[1])
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
BigIntegerMath.java 31 import java.math.BigInteger;
37 * A class for arithmetic on values of type {@code BigInteger}.
53 public static boolean isPowerOfTwo(BigInteger x) {
67 public static int log2(BigInteger x, RoundingMode mode) {
85 BigInteger halfPower = SQRT2_PRECOMPUTED_BITS.shiftRight(
99 BigInteger x2 = x.pow(2);
115 @VisibleForTesting static final BigInteger SQRT2_PRECOMPUTED_BITS =
116 new BigInteger("16a09e667f3bcc908b2fb1366ea957d3e3adec17512775099da2f590b0667322a", 16);
133 public static BigInteger factorial(int n) {
138 return BigInteger.valueOf(LongMath.factorials[n])
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
BigFraction.java 21 import java.math.BigInteger;
85 /** <code>BigInteger</code> representation of 100. */
86 private static final BigInteger ONE_HUNDRED_DOUBLE = BigInteger.valueOf(100);
89 private final BigInteger numerator;
92 private final BigInteger denominator;
96 * Create a {@link BigFraction} equivalent to the passed <tt>BigInteger</tt>, ie
103 public BigFraction(final BigInteger num) {
104 this(num, BigInteger.ONE);
109 * {@code BigInteger}. The {@link BigFraction} is reduced to lowest terms
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
X9ECParameters.java 3 import java.math.BigInteger;
26 private static final BigInteger ONE = BigInteger.valueOf(1);
31 private BigInteger n;
32 private BigInteger h;
88 BigInteger n)
96 BigInteger n,
97 BigInteger h)
105 BigInteger n,
106 BigInteger h
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
CRLNumber.java 4 import java.math.BigInteger;
20 private BigInteger number;
23 BigInteger number)
28 public BigInteger getCRLNumber()
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/field/
FiniteFields.java 4 import java.math.BigInteger;
11 static final FiniteField GF_2 = new PrimeField(BigInteger.valueOf(2));
12 static final FiniteField GF_3 = new PrimeField(BigInteger.valueOf(3));
36 public static FiniteField getPrimeField(BigInteger characteristic)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
RSABlindedEngine.java 3 import java.math.BigInteger;
21 private static final BigInteger ONE = BigInteger.valueOf(1);
96 BigInteger input = core.convertInput(in, inOff, inLen);
98 BigInteger result;
103 BigInteger e = k.getPublicExponent();
106 BigInteger m = k.getModulus();
107 BigInteger r = BigIntegers.createRandomInRange(ONE, m.subtract(ONE), random);
109 BigInteger blindedInput = r.modPow(e, m).multiply(input).mod(m);
110 BigInteger blindedResult = core.processBlock(blindedInput)
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
RSABlindedEngine.java 4 import java.math.BigInteger;
23 private static final BigInteger ONE = BigInteger.valueOf(1);
98 BigInteger input = core.convertInput(in, inOff, inLen);
100 BigInteger result;
105 BigInteger e = k.getPublicExponent();
108 BigInteger m = k.getModulus();
109 BigInteger r = BigIntegers.createRandomInRange(ONE, m.subtract(ONE), random);
111 BigInteger blindedInput = r.modPow(e, m).multiply(input).mod(m);
112 BigInteger blindedResult = core.processBlock(blindedInput)
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DERInteger.java 4 import java.math.BigInteger;
25 public DERInteger(BigInteger value)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ec/
CustomNamedCurves.java 3 import java.math.BigInteger;
124 new BigInteger("9ba48cba5ebcb9b6bd33b92830b2a2e0e192f10a", 16),
125 new BigInteger("c39c6c3b3a36d7701b9c71a1f5804ae5d0003f4", 16),
126 new BigInteger[]{
127 new BigInteger("9162fbe73984472a0a9e", 16),
128 new BigInteger("-96341f1138933bc2f505", 16) },
129 new BigInteger[]{
130 new BigInteger("127971af8721782ecffa3", 16),
131 new BigInteger("9162fbe73984472a0a9e", 16) },
132 new BigInteger("9162fbe73984472a0a9d0590", 16)
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/ec/
CustomNamedCurves.java 4 import java.math.BigInteger;
128 new BigInteger("9ba48cba5ebcb9b6bd33b92830b2a2e0e192f10a", 16),
129 new BigInteger("c39c6c3b3a36d7701b9c71a1f5804ae5d0003f4", 16),
130 new BigInteger[]{
131 new BigInteger("9162fbe73984472a0a9e", 16),
132 new BigInteger("-96341f1138933bc2f505", 16) },
133 new BigInteger[]{
134 new BigInteger("127971af8721782ecffa3", 16),
135 new BigInteger("9162fbe73984472a0a9e", 16) },
136 new BigInteger("9162fbe73984472a0a9d0590", 16)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
RSAKeyPairGenerator.java 3 import java.math.BigInteger;
21 private static final BigInteger ONE = BigInteger.valueOf(1);
51 BigInteger dLowerBound = BigInteger.valueOf(2).pow(strength / 2);
53 BigInteger squaredBound = ONE.shiftLeft(strength - 1);
55 BigInteger minDiff = ONE.shiftLeft(mindiffbits);
59 BigInteger p, q, n, d, e, pSub1, qSub1, gcd, lcm;
73 BigInteger diff = q.subtract(p).abs();
138 BigInteger dP, dQ, qInv
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
RSAKeyPairGenerator.java 4 import java.math.BigInteger;
23 private static final BigInteger ONE = BigInteger.valueOf(1);
53 BigInteger dLowerBound = BigInteger.valueOf(2).pow(strength / 2);
55 BigInteger squaredBound = ONE.shiftLeft(strength - 1);
57 BigInteger minDiff = ONE.shiftLeft(mindiffbits);
61 BigInteger p, q, n, d, e, pSub1, qSub1, gcd, lcm;
75 BigInteger diff = q.subtract(p).abs();
140 BigInteger dP, dQ, qInv
    [all...]
  /external/guava/guava/src/com/google/common/collect/
DiscreteDomain.java 23 import java.math.BigInteger;
150 * Returns the discrete domain for values of type {@code BigInteger}.
154 public static DiscreteDomain<BigInteger> bigIntegers() {
158 private static final class BigIntegerDomain extends DiscreteDomain<BigInteger>
162 private static final BigInteger MIN_LONG =
163 BigInteger.valueOf(Long.MIN_VALUE);
164 private static final BigInteger MAX_LONG =
165 BigInteger.valueOf(Long.MAX_VALUE);
167 @Override public BigInteger next(BigInteger value)
    [all...]
  /external/guava/guava-tests/test/com/google/common/math/
BigIntegerMathTest.java 24 import static java.math.BigInteger.ONE;
25 import static java.math.BigInteger.TEN;
26 import static java.math.BigInteger.ZERO;
44 import java.math.BigInteger;
57 BigInteger.ZERO.setBit(2 * BigIntegerMath.SQRT2_PRECOMPUTE_THRESHOLD + 1), FLOOR),
62 for (BigInteger x : ALL_BIGINTEGER_CANDIDATES) {
81 BigIntegerMath.log2(BigInteger.valueOf(-1), mode);
88 for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
98 for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
107 // Relies on the correctness of isPowerOfTwo(BigInteger)
    [all...]
  /external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/
PublicKeyProtoUtil.java 23 import java.math.BigInteger;
61 private static final BigInteger ONE = new BigInteger("1");
62 private static final BigInteger TWO = new BigInteger("2");
89 private static final BigInteger EC_P256_P = isLegacyCryptoRequired() ? null :
95 private static final BigInteger EC_P256_A = isLegacyCryptoRequired() ? null :
101 private static final BigInteger EC_P256_B = isLegacyCryptoRequired() ? null :
130 public static final BigInteger DH_P = new BigInteger(
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
ECDSASigner.java 3 import java.math.BigInteger;
79 public BigInteger getOrder()
92 public BigInteger[] generateSignature(
96 BigInteger n = ec.getN();
97 BigInteger e = calculateE(n, message);
98 BigInteger d = ((ECPrivateKeyParameters)key).getD();
109 BigInteger r, s;
116 BigInteger k;
132 return new BigInteger[]{ r, s };
143 BigInteger r
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/signers/
ECDSASigner.java 4 import java.math.BigInteger;
81 public BigInteger getOrder()
94 public BigInteger[] generateSignature(
98 BigInteger n = ec.getN();
99 BigInteger e = calculateE(n, message);
100 BigInteger d = ((ECPrivateKeyParameters)key).getD();
111 BigInteger r, s;
118 BigInteger k;
134 return new BigInteger[]{ r, s };
145 BigInteger r
    [all...]

Completed in 200 milliseconds

1 2 3 4 56 7 8 91011>>