Home
last modified time | relevance | path

Searched refs:bitLength (Results 1 – 25 of 250) sorted by relevance

12345678910

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DBigIntegers.java135 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 …]
DFingerprint.java39 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/
DBigIntegers.java137 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 …]
DFingerprint.java41 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/
DBigIntegers.java137 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 …]
DFingerprint.java41 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/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DDHPublicKeyParameters.java51 && 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/
DDHPublicKeyParameters.java47 && 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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/params/
DDHPublicKeyParameters.java51 && 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/math/field/
DFiniteFields.java34 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/
DFiniteFields.java38 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/
DFiniteFields.java38 int bitLength = characteristic.bitLength(); in getPrimeField() local
39 if (characteristic.signum() <= 0 || bitLength < 2) in getPrimeField()
44 if (bitLength < 3) in getPrimeField()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DBinaryTree.java128 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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DWNafUtil.java29 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 …]
DECFieldElement.java35 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 …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DWNafUtil.java25 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 …]
DECFieldElement.java31 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 …]
DECAlgorithms.java194 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/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DWNafUtil.java29 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 …]
DECFieldElement.java35 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 …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DChainStrengthAnalyzer.java80 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength()
93 int pLength = ((DSAPublicKey) pubkey).getParams().getP().bitLength(); in checkKeyLength()
94 int qLength = ((DSAPublicKey) pubkey).getParams().getQ().bitLength(); in checkKeyLength()
/external/conscrypt/common/src/main/java/org/conscrypt/
DChainStrengthAnalyzer.java78 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()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/digests/
DGeneralDigest.java117 long bitLength = (byteCount << 3); in finish() local
129 processLength(bitLength); in finish()
159 protected abstract void processLength(long bitLength); in processLength() argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
DGeneralDigest.java115 long bitLength = (byteCount << 3); in finish() local
127 processLength(bitLength); in finish()
157 protected abstract void processLength(long bitLength); in processLength() argument
/external/python/pyasn1/pyasn1/compat/
Dinteger.py39 bits = bitLength(value)
84 def bitLength(number): function
109 def bitLength(number): function

12345678910