/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | BigIntegers.java | 135 if (min.bitLength() > max.bitLength() / 2) in createRandomInRange() 142 BigInteger x = createRandomBigInteger(max.bitLength(), random); in createRandomInRange() 150 return createRandomBigInteger(max.subtract(min).bitLength() - 1, random).add(min); in createRandomInRange() 172 if (x.bitLength() > 31) in intValueExact() 183 if (x.bitLength() > 63) in longValueExact() 206 int bits = M.bitLength(); in modOddInverse() 241 int bits = M.bitLength(); in modOddInverseVar() 260 return (n.bitLength() + 7) / 8; in getUnsignedByteLength() 270 public static BigInteger createRandomBigInteger(int bitLength, SecureRandom random) in createRandomBigInteger() argument 272 return new BigInteger(1, createRandom(bitLength, random)); in createRandomBigInteger() [all …]
|
D | Fingerprint.java | 39 public Fingerprint(byte[] source, int bitLength) in Fingerprint() argument 41 this.fingerprint = calculateFingerprint(source, bitLength); in Fingerprint() 128 public static byte[] calculateFingerprint(byte[] input, int bitLength) in calculateFingerprint() argument 130 if (bitLength % 8 != 0) in calculateFingerprint() 141 byte[] rv = new byte[bitLength / 8]; in calculateFingerprint() 148 if ((bitLength / 8) >= 32) { in calculateFingerprint()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/ |
D | BigIntegers.java | 137 if (min.bitLength() > max.bitLength() / 2) in createRandomInRange() 144 BigInteger x = createRandomBigInteger(max.bitLength(), random); in createRandomInRange() 152 return createRandomBigInteger(max.subtract(min).bitLength() - 1, random).add(min); in createRandomInRange() 174 if (x.bitLength() > 31) in intValueExact() 185 if (x.bitLength() > 63) in longValueExact() 208 int bits = M.bitLength(); in modOddInverse() 243 int bits = M.bitLength(); in modOddInverseVar() 262 return (n.bitLength() + 7) / 8; in getUnsignedByteLength() 272 public static BigInteger createRandomBigInteger(int bitLength, SecureRandom random) in createRandomBigInteger() argument 274 return new BigInteger(1, createRandom(bitLength, random)); in createRandomBigInteger() [all …]
|
D | Fingerprint.java | 41 public Fingerprint(byte[] source, int bitLength) in Fingerprint() argument 43 this.fingerprint = calculateFingerprint(source, bitLength); in Fingerprint() 130 public static byte[] calculateFingerprint(byte[] input, int bitLength) in calculateFingerprint() argument 132 if (bitLength % 8 != 0) in calculateFingerprint() 143 byte[] rv = new byte[bitLength / 8]; in calculateFingerprint() 150 if ((bitLength / 8) >= 32) { in calculateFingerprint()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/ |
D | BigIntegers.java | 137 if (min.bitLength() > max.bitLength() / 2) in createRandomInRange() 144 BigInteger x = createRandomBigInteger(max.bitLength(), random); in createRandomInRange() 152 return createRandomBigInteger(max.subtract(min).bitLength() - 1, random).add(min); in createRandomInRange() 174 if (x.bitLength() > 31) in intValueExact() 185 if (x.bitLength() > 63) in longValueExact() 208 int bits = M.bitLength(); in modOddInverse() 243 int bits = M.bitLength(); in modOddInverseVar() 262 return (n.bitLength() + 7) / 8; in getUnsignedByteLength() 272 public static BigInteger createRandomBigInteger(int bitLength, SecureRandom random) in createRandomBigInteger() argument 274 return new BigInteger(1, createRandom(bitLength, random)); in createRandomBigInteger() [all …]
|
D | Fingerprint.java | 41 public Fingerprint(byte[] source, int bitLength) in Fingerprint() argument 43 this.fingerprint = calculateFingerprint(source, bitLength); in Fingerprint() 130 public static byte[] calculateFingerprint(byte[] input, int bitLength) in calculateFingerprint() argument 132 if (bitLength % 8 != 0) in calculateFingerprint() 143 byte[] rv = new byte[bitLength / 8]; in calculateFingerprint() 150 if ((bitLength / 8) >= 32) { in calculateFingerprint()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/params/ |
D | DHPublicKeyParameters.java | 51 && p.bitLength() - 1 == q.bitLength() in validate() 124 int bitLength = b.bitLength(); in legendre() local 125 int[] A = Nat.fromBigInteger(bitLength, a); in legendre() 126 int[] B = Nat.fromBigInteger(bitLength, b); in legendre()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
D | DHPublicKeyParameters.java | 51 && p.bitLength() - 1 == q.bitLength() in validate() 124 int bitLength = b.bitLength(); in legendre() local 125 int[] A = Nat.fromBigInteger(bitLength, a); in legendre() 126 int[] B = Nat.fromBigInteger(bitLength, b); in legendre()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | DHPublicKeyParameters.java | 47 && p.bitLength() - 1 == q.bitLength() in validate() 120 int bitLength = b.bitLength(); in legendre() local 121 int[] A = Nat.fromBigInteger(bitLength, a); in legendre() 122 int[] B = Nat.fromBigInteger(bitLength, b); in legendre()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | BinaryTree.java | 128 final int bitLength = (b & 0x0F) + 1; in decode() local 131 originalBitLengths[pos++] = bitLength; in decode() 134 maxLength = Math.max(maxLength, bitLength); in decode() 181 final int bitLength = originalBitLengths[k]; in decode() local 182 if (bitLength > 0) { in decode() 183 tree.addLeaf(0, Integer.reverse(codes[k] << 16), bitLength, k); in decode()
|
/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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/field/ |
D | FiniteFields.java | 38 int bitLength = characteristic.bitLength(); in getPrimeField() local 39 if (characteristic.signum() <= 0 || bitLength < 2) in getPrimeField() 44 if (bitLength < 3) in getPrimeField()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/field/ |
D | FiniteFields.java | 38 int bitLength = characteristic.bitLength(); in getPrimeField() local 39 if (characteristic.signum() <= 0 || bitLength < 2) in getPrimeField() 44 if (bitLength < 3) in getPrimeField()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/ |
D | WNafUtil.java | 29 int bits = (null == n) ? c.getFieldSize() + 1 : n.bitLength(); in configureBasepoint() 64 if ((k.bitLength() >>> 16) != 0) in generateCompactNaf() 75 int bits = _3k.bitLength(); in generateCompactNaf() 116 if ((k.bitLength() >>> 16) != 0) in generateCompactWindowNaf() 125 int[] wnaf = new int[k.bitLength() / width + 1]; in generateCompactWindowNaf() 135 while (pos <= k.bitLength()) in generateCompactWindowNaf() 173 int digits = Math.max(g.bitLength(), h.bitLength()) + 1; in generateJSF() 180 while ((d0 | d1) != 0 || k0.bitLength() > offset || k1.bitLength() > offset) in generateJSF() 241 int digits = _3k.bitLength() - 1; in generateNaf() 288 byte[] wnaf = new byte[k.bitLength() + 1]; in generateWindowNaf() [all …]
|
D | ECFieldElement.java | 35 public int bitLength() in bitLength() method in ECFieldElement 37 return toBigInteger().bitLength(); in bitLength() 42 return bitLength() == 1; in isOne() 111 int bitLength = p.bitLength(); in calculateResidue() local 112 if (bitLength >= 96) in calculateResidue() 114 BigInteger firstWord = p.shiftRight(bitLength - 64); in calculateResidue() 117 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue() 160 return q.bitLength(); in getFieldSize() 311 P = new BigInteger(q.bitLength(), rand); in sqrt() 342 int n = k.bitLength(); in lucasSequence() [all …]
|
D | ECAlgorithms.java | 198 int t = x.bitLength(); in referenceMultiply() 292 int minWidthP = WNafUtil.getWindowSize(kAbs.bitLength(), 8); in implShamirsTrickWNaf() 293 int minWidthQ = WNafUtil.getWindowSize(lAbs.bitLength(), 8); in implShamirsTrickWNaf() 303 && k.bitLength() <= combSize && l.bitLength() <= combSize in implShamirsTrickWNaf() 331 int minWidth = WNafUtil.getWindowSize(Math.max(k.bitLength(), l.bitLength()), 8); 415 int minWidth = WNafUtil.getWindowSize(ki.bitLength(), 8); 475 int minWidth = WNafUtil.getWindowSize(Math.max(kj0.bitLength(), kj1.bitLength()), 8); 553 if (k.bitLength() > combSize || l.bitLength() > combSize)
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/ |
D | WNafUtil.java | 29 int bits = (null == n) ? c.getFieldSize() + 1 : n.bitLength(); in configureBasepoint() 64 if ((k.bitLength() >>> 16) != 0) in generateCompactNaf() 75 int bits = _3k.bitLength(); in generateCompactNaf() 116 if ((k.bitLength() >>> 16) != 0) in generateCompactWindowNaf() 125 int[] wnaf = new int[k.bitLength() / width + 1]; in generateCompactWindowNaf() 135 while (pos <= k.bitLength()) in generateCompactWindowNaf() 173 int digits = Math.max(g.bitLength(), h.bitLength()) + 1; in generateJSF() 180 while ((d0 | d1) != 0 || k0.bitLength() > offset || k1.bitLength() > offset) in generateJSF() 241 int digits = _3k.bitLength() - 1; in generateNaf() 288 byte[] wnaf = new byte[k.bitLength() + 1]; in generateWindowNaf() [all …]
|
D | ECFieldElement.java | 35 public int bitLength() in bitLength() method in ECFieldElement 37 return toBigInteger().bitLength(); in bitLength() 42 return bitLength() == 1; in isOne() 111 int bitLength = p.bitLength(); in calculateResidue() local 112 if (bitLength >= 96) in calculateResidue() 114 BigInteger firstWord = p.shiftRight(bitLength - 64); in calculateResidue() 117 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue() 160 return q.bitLength(); in getFieldSize() 311 P = new BigInteger(q.bitLength(), rand); in sqrt() 342 int n = k.bitLength(); in lucasSequence() [all …]
|
D | ECAlgorithms.java | 198 int t = x.bitLength(); in referenceMultiply() 292 int minWidthP = WNafUtil.getWindowSize(kAbs.bitLength(), 8); in implShamirsTrickWNaf() 293 int minWidthQ = WNafUtil.getWindowSize(lAbs.bitLength(), 8); in implShamirsTrickWNaf() 303 && k.bitLength() <= combSize && l.bitLength() <= combSize in implShamirsTrickWNaf() 331 int minWidth = WNafUtil.getWindowSize(Math.max(k.bitLength(), l.bitLength()), 8); 415 int minWidth = WNafUtil.getWindowSize(ki.bitLength(), 8); 475 int minWidth = WNafUtil.getWindowSize(Math.max(kj0.bitLength(), kj1.bitLength()), 8); 553 if (k.bitLength() > combSize || l.bitLength() > combSize)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | WNafUtil.java | 25 int bits = (null == n) ? c.getFieldSize() + 1 : n.bitLength(); in configureBasepoint() 60 if ((k.bitLength() >>> 16) != 0) in generateCompactNaf() 71 int bits = _3k.bitLength(); in generateCompactNaf() 112 if ((k.bitLength() >>> 16) != 0) in generateCompactWindowNaf() 121 int[] wnaf = new int[k.bitLength() / width + 1]; in generateCompactWindowNaf() 131 while (pos <= k.bitLength()) in generateCompactWindowNaf() 169 int digits = Math.max(g.bitLength(), h.bitLength()) + 1; in generateJSF() 176 while ((d0 | d1) != 0 || k0.bitLength() > offset || k1.bitLength() > offset) in generateJSF() 237 int digits = _3k.bitLength() - 1; in generateNaf() 284 byte[] wnaf = new byte[k.bitLength() + 1]; in generateWindowNaf() [all …]
|
D | ECFieldElement.java | 31 public int bitLength() in bitLength() method in ECFieldElement 33 return toBigInteger().bitLength(); in bitLength() 38 return bitLength() == 1; in isOne() 101 int bitLength = p.bitLength(); in calculateResidue() local 102 if (bitLength >= 96) in calculateResidue() 104 BigInteger firstWord = p.shiftRight(bitLength - 64); in calculateResidue() 107 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue() 150 return q.bitLength(); in getFieldSize() 301 P = new BigInteger(q.bitLength(), rand); in sqrt() 332 int n = k.bitLength(); in lucasSequence() [all …]
|
D | ECAlgorithms.java | 194 int t = x.bitLength(); in referenceMultiply() 288 int minWidthP = WNafUtil.getWindowSize(kAbs.bitLength(), 8); in implShamirsTrickWNaf() 289 int minWidthQ = WNafUtil.getWindowSize(lAbs.bitLength(), 8); in implShamirsTrickWNaf() 299 && k.bitLength() <= combSize && l.bitLength() <= combSize in implShamirsTrickWNaf() 327 int minWidth = WNafUtil.getWindowSize(Math.max(k.bitLength(), l.bitLength()), 8); 411 int minWidth = WNafUtil.getWindowSize(ki.bitLength(), 8); 471 int minWidth = WNafUtil.getWindowSize(Math.max(kj0.bitLength(), kj1.bitLength()), 8); 549 if (k.bitLength() > combSize || l.bitLength() > combSize)
|
/external/bouncycastle/repackaged_platform/bcpkix/src/main/java/com/android/internal/org/bouncycastle/cert/selector/ |
D | MSOutlookKeyIdCalculator.java | 130 long bitLength = (byteCount << 3); in finish() local 142 processLength(bitLength); in finish() 160 protected abstract void processLength(long bitLength); in processLength() argument 212 long bitLength) in processLength() argument 219 X[14] = (int)(bitLength >>> 32); in processLength() 220 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/conscrypt/common/src/main/java/org/conscrypt/ |
D | ChainStrengthAnalyzer.java | 78 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength() 91 int pLength = ((DSAPublicKey) pubkey).getParams().getP().bitLength(); in checkKeyLength() 92 int qLength = ((DSAPublicKey) pubkey).getParams().getQ().bitLength(); in checkKeyLength()
|