/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/field/ |
FiniteFields.java | 34 int bitLength = characteristic.bitLength(); 35 if (characteristic.signum() <= 0 || bitLength < 2) 40 if (bitLength < 3)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
DSAKeyGenerationParameters.java | 16 super(random, params.getP().bitLength() - 1);
|
ECKeyGenerationParameters.java | 16 super(random, domainParams.getN().bitLength());
|
DHKeyGenerationParameters.java | 28 return params.getL() != 0 ? params.getL() : params.getP().bitLength();
|
/libcore/luni/src/test/java/libcore/java/math/ |
BigIntegerTest.java | 93 assertTrue(b.toString() + " " + b.bitLength(), b.bitLength() <= 128); 96 assertTrue(b.toString() + " " + b.bitLength(), b.bitLength() <= 16); 99 assertTrue(b.toString() + " " + b.bitLength(), b.bitLength() <= 5); 108 assertEquals(b.toString(), 128, b.bitLength()); 112 assertEquals(b.toString(), 16, b.bitLength()); 116 assertEquals(b.toString(), 5, b.bitLength()); 126 assertEquals(b.toString(), 2, b.bitLength()); [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
RandomDSAKCalculator.java | 32 int qBitLength = q.bitLength();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
BigIntegers.java | 88 if (min.bitLength() > max.bitLength() / 2) 95 BigInteger x = new BigInteger(max.bitLength(), random); 103 return new BigInteger(max.subtract(min).bitLength() - 1, random).add(min);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
GeneralDigest.java | 115 long bitLength = (byteCount << 3); 127 processLength(bitLength); 157 protected abstract void processLength(long bitLength);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
OldBigIntegerTest.java | 86 assertEquals(i, bi.bitLength()); 176 for (int bitLength = 100; bitLength <= 600; bitLength += 100) { 177 BigInteger a = BigInteger.probablePrime(bitLength, rand); 178 BigInteger b = BigInteger.probablePrime(bitLength, rand); 182 " (bitLength = " + bitLength + ")", 222 for (int bitLength = 50; bitLength <= 1050; bitLength += 100) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DSAKeyPairGenerator.java | 50 int minWeight = q.bitLength() >>> 2; 55 // BigInteger x = new BigInteger(q.bitLength() + 64, random).mod(q.subtract(ONE)).add(ONE);
|
RSAKeyPairGenerator.java | 75 if (diff.bitLength() < mindiffbits || diff.compareTo(minDiff) <= 0) 85 if (n.bitLength() != strength) 156 * @param bitlength the bit-length of the returned prime 160 protected BigInteger chooseRandomPrime(int bitlength, BigInteger e, BigInteger sqrdBound) 162 for (int i = 0; i != 5 * bitlength; i++) 164 BigInteger p = new BigInteger(bitlength, 1, param.getRandom());
|
DHKeyGeneratorHelper.java | 52 int minWeight = max.bitLength() >>> 2;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
WNafUtil.java | 17 if ((k.bitLength() >>> 16) != 0) 19 throw new IllegalArgumentException("'k' must have bitlength < 2^16"); 28 int bits = _3k.bitLength(); 69 if ((k.bitLength() >>> 16) != 0) 71 throw new IllegalArgumentException("'k' must have bitlength < 2^16"); 78 int[] wnaf = new int[k.bitLength() / width + 1]; 88 while (pos <= k.bitLength()) 126 int digits = Math.max(g.bitLength(), h.bitLength()) + 1; 133 while ((d0 | d1) != 0 || k0.bitLength() > offset || k1.bitLength() > offset [all...] |
FixedPointCombMultiplier.java | 12 if (k.bitLength() > size)
|
FixedPointUtil.java | 12 return order == null ? c.getFieldSize() + 1 : order.bitLength();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/ |
ECPrivateKey.java | 56 this(key.bitLength(), key); 62 * @param orderBitLength the bitLength of the order of the curve. 97 this(key.bitLength(), key, publicKey, parameters);
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ChainStrengthAnalyzer.java | 77 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); 90 int pLength = ((DSAPublicKey) pubkey).getParams().getP().bitLength(); 91 int qLength = ((DSAPublicKey) pubkey).getParams().getQ().bitLength();
|
/libcore/luni/src/main/java/java/math/ |
BigDecimal.java | 185 LONG_FIVE_POW_BIT_LENGTH[i] = bitLength(LONG_FIVE_POW[i]); 188 LONG_POWERS_OF_TEN_BIT_LENGTH[i] = bitLength(MathUtils.LONG_POWERS_OF_TEN[i]); 217 private transient int bitLength; 240 this.bitLength = bitLength(smallValue); 246 this.bitLength = bitLength(smallValue); 345 bitLength = bitLength(smallValue); 489 int mantissaBits = bitLength(mantissa) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
SecP192K1Curve.java | 57 return q.bitLength();
|
SecP192R1Curve.java | 58 return q.bitLength();
|
SecP224K1Curve.java | 56 return q.bitLength();
|
SecP224R1Curve.java | 58 return q.bitLength();
|
SecP256K1Curve.java | 56 return q.bitLength();
|
SecP256R1Curve.java | 58 return q.bitLength();
|
SecP384R1Curve.java | 58 return q.bitLength();
|