/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/field/ |
D | FiniteFields.java | 34 int bitLength = characteristic.bitLength(); in getPrimeField() local 35 if (characteristic.signum() <= 0 || bitLength < 2) in getPrimeField() 40 if (bitLength < 3) in getPrimeField()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | WNafUtil.java | 17 if ((k.bitLength() >>> 16) != 0) in generateCompactNaf() 28 int bits = _3k.bitLength(); in generateCompactNaf() 69 if ((k.bitLength() >>> 16) != 0) in generateCompactWindowNaf() 78 int[] wnaf = new int[k.bitLength() / width + 1]; in generateCompactWindowNaf() 88 while (pos <= k.bitLength()) in generateCompactWindowNaf() 126 int digits = Math.max(g.bitLength(), h.bitLength()) + 1; in generateJSF() 133 while ((d0 | d1) != 0 || k0.bitLength() > offset || k1.bitLength() > offset) in generateJSF() 194 int digits = _3k.bitLength() - 1; in generateNaf() 241 byte[] wnaf = new byte[k.bitLength() + 1]; in generateWindowNaf() 251 while (pos <= k.bitLength()) in generateWindowNaf()
|
D | ECFieldElement.java | 27 public int bitLength() in bitLength() method in ECFieldElement 29 return toBigInteger().bitLength(); in bitLength() 34 return bitLength() == 1; in isOne() 93 int bitLength = p.bitLength(); in calculateResidue() local 94 if (bitLength >= 96) in calculateResidue() 96 BigInteger firstWord = p.shiftRight(bitLength - 64); in calculateResidue() 99 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue() 142 return q.bitLength(); in getFieldSize() 293 P = new BigInteger(q.bitLength(), rand); in sqrt() 324 int n = k.bitLength(); in lucasSequence() [all …]
|
D | ECAlgorithms.java | 191 int t = x.bitLength(); in referenceMultiply() 265 int widthP = Math.max(2, Math.min(16, WNafUtil.getWindowSize(k.bitLength()))); in implShamirsTrickWNaf() 266 int widthQ = Math.max(2, Math.min(16, WNafUtil.getWindowSize(l.bitLength()))); in implShamirsTrickWNaf() 289 … width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(Math.max(k.bitLength(), l.bitLength())))); 370 int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(ki.bitLength()))); in implSumOfMultiplies() 425 …th = Math.max(2, Math.min(16, WNafUtil.getWindowSize(Math.max(kj0.bitLength(), kj1.bitLength()))));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | BigIntegers.java | 88 if (min.bitLength() > max.bitLength() / 2) in createRandomInRange() 95 BigInteger x = new BigInteger(max.bitLength(), random); in createRandomInRange() 103 return new BigInteger(max.subtract(min).bitLength() - 1, random).add(min); in createRandomInRange()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | ChainStrengthAnalyzer.java | 71 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength() 84 int pLength = ((DSAPublicKey) pubkey).getParams().getP().bitLength(); in checkKeyLength() 85 int qLength = ((DSAPublicKey) pubkey).getParams().getQ().bitLength(); in checkKeyLength()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
D | GeneralDigest.java | 115 long bitLength = (byteCount << 3); in finish() local 127 processLength(bitLength); in finish() 157 protected abstract void processLength(long bitLength); in processLength() argument
|
D | SHA256Digest.java | 116 long bitLength) in processLength() argument 123 X[14] = (int)(bitLength >>> 32); in processLength() 124 X[15] = (int)(bitLength & 0xffffffff); in processLength()
|
D | SHA224Digest.java | 115 long bitLength) in processLength() argument 122 X[14] = (int)(bitLength >>> 32); in processLength() 123 X[15] = (int)(bitLength & 0xffffffff); in processLength()
|
D | SHA1Digest.java | 100 long bitLength) in processLength() argument 107 X[14] = (int)(bitLength >>> 32); in processLength() 108 X[15] = (int)(bitLength & 0xffffffff); in processLength()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/ |
D | MSOutlookKeyIdCalculator.java | 129 long bitLength = (byteCount << 3); in finish() local 141 processLength(bitLength); in finish() 159 protected abstract void processLength(long bitLength); in processLength() argument 211 long bitLength) in processLength() argument 218 X[14] = (int)(bitLength >>> 32); in processLength() 219 X[15] = (int)(bitLength & 0xffffffff); in processLength()
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | BigIntegerMath.java | 55 return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1; in isPowerOfTwo() 69 int logFloor = x.bitLength() - 1; in log2() 100 int logX2Floor = x2.bitLength() - 1; in log2()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ |
D | Primes.java | 163 if (candidate.bitLength() == 2) in enhancedMRProbablePrimeTest() 289 if (candidate.bitLength() == 2) in isMRProbablePrime() 340 if (candidate.bitLength() == 2) in isMRProbablePrimeToBase() 356 if (n == null || n.signum() < 1 || n.bitLength() < 2) in checkCandidate() 539 if (c.bitLength() > length) in implSTRandomPrime()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/ |
D | ECPrivateKey.java | 56 this(key.bitLength(), key); in ECPrivateKey() 97 this(key.bitLength(), key, publicKey, parameters); in ECPrivateKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | RSACoreEngine.java | 52 int bitSize = key.getModulus().bitLength(); in getInputBlockSize() 73 int bitSize = key.getModulus().bitLength(); in getOutputBlockSize()
|
/external/sl4a/Common/src/org/apache/commons/codec/binary/ |
D | Base64Codec.java | 1019 int bitlen = bigInt.bitLength(); in toIntegerBytes() 1024 if (((bigInt.bitLength() % 8) != 0) && (((bigInt.bitLength() / 8) + 1) == (bitlen / 8))) { in toIntegerBytes() 1032 if ((bigInt.bitLength() % 8) == 0) { in toIntegerBytes()
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 57 return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1; in isPowerOfTwo() 71 int logFloor = x.bitLength() - 1; in log2() 102 int logX2Floor = x2.bitLength() - 1; in log2() 450 return x.bitLength() <= Long.SIZE - 1; in fitsInLong()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | BouncyCastleProviderConfiguration.java | 147 if (spec.getP().bitLength() == keySize) in getDHDefaultParameters() 158 if (specs[i].getP().bitLength() == keySize) in getDHDefaultParameters()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
D | DSASigner.java | 148 if (n.bitLength() >= message.length * 8) in calculateE() 154 byte[] trunc = new byte[n.bitLength() / 8]; in calculateE()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
D | RSAKeyPairGenerator.java | 75 if (diff.bitLength() < mindiffbits || diff.compareTo(minDiff) <= 0) in generateKeyPair() 85 if (n.bitLength() != strength) in generateKeyPair()
|
D | DSAParametersGenerator.java | 190 if (p.bitLength() != L) in generateParameters_FIPS186_2() 214 if (g.bitLength() > 1) in calculateGenerator_FIPS186_2() 305 if (p.bitLength() != L) in generateParameters_FIPS186_3()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 233 return privateValue.bitLength(); // a guess but better than an exception! in getOrderBitLength() 236 return implicitCA.getN().bitLength(); in getOrderBitLength() 240 return order.bitLength(); in getOrderBitLength()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | DSAKeyGenerationParameters.java | 16 super(random, params.getP().bitLength() - 1); in DSAKeyGenerationParameters()
|
D | ECKeyGenerationParameters.java | 16 super(random, domainParams.getN().bitLength()); in ECKeyGenerationParameters()
|
D | DHKeyGenerationParameters.java | 28 return params.getL() != 0 ? params.getL() : params.getP().bitLength(); in getStrength()
|