Home
last modified time | relevance | path

Searched refs:testBit (Results 1 – 25 of 42) sorted by relevance

12

/external/wycheproof/java/com/google/security/wycheproof/
DEcUtil.java201 if (p.testBit(0) && p.testBit(1)) { in modSqrt()
206 } else if (p.testBit(0) && !p.testBit(1)) { in modSqrt()
239 if (q.testBit(bit)) { in modSqrt()
358 if (bit0 != y.testBit(0)) { in getPoint()
402 if (lsb != y.testBit(0)) { in decompressPoint()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DWNafUtil.java83 if (!diff.testBit(i)) in generateCompactNaf()
89 int digit = k.testBit(i) ? -1 : 1; in generateCompactNaf()
137 if (k.testBit(pos) == carry) in generateCompactWindowNaf()
248 if (diff.testBit(i)) in generateNaf()
250 naf[i - 1] = (byte)(k.testBit(i) ? -1 : 1); in generateNaf()
300 if (k.testBit(pos) == carry) in generateWindowNaf()
DECFieldElement.java82 return toBigInteger().testBit(0); in testBitZero()
258 if (!q.testBit(0)) in sqrt()
266 if (q.testBit(1)) // q == 4m + 3 in sqrt()
272 if (q.testBit(2)) // q == 8m + 5 in sqrt()
357 if (k.testBit(j)) in lucasSequence()
411 if (x.testBit(0)) in modHalf()
420 if (x.testBit(0)) in modHalfAbs()
DTnaf.java298 if (gsPlusJs.testBit(_k-c-1)) in approximateDivisionByN()
343 if (r0.testBit(0)) in tauAdicNaf()
767 if (r0.testBit(0)) in tauAdicWNaf()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DWNafUtil.java79 if (!diff.testBit(i)) in generateCompactNaf()
85 int digit = k.testBit(i) ? -1 : 1; in generateCompactNaf()
133 if (k.testBit(pos) == carry) in generateCompactWindowNaf()
244 if (diff.testBit(i)) in generateNaf()
246 naf[i - 1] = (byte)(k.testBit(i) ? -1 : 1); in generateNaf()
296 if (k.testBit(pos) == carry) in generateWindowNaf()
DECFieldElement.java78 return toBigInteger().testBit(0); in testBitZero()
248 if (!q.testBit(0)) in sqrt()
256 if (q.testBit(1)) // q == 4m + 3 in sqrt()
262 if (q.testBit(2)) // q == 8m + 5 in sqrt()
347 if (k.testBit(j)) in lucasSequence()
401 if (x.testBit(0)) in modHalf()
410 if (x.testBit(0)) in modHalfAbs()
DTnaf.java297 if (gsPlusJs.testBit(_k-c-1)) in approximateDivisionByN()
342 if (r0.testBit(0)) in tauAdicNaf()
766 if (r0.testBit(0)) in tauAdicWNaf()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DWNafUtil.java83 if (!diff.testBit(i)) in generateCompactNaf()
89 int digit = k.testBit(i) ? -1 : 1; in generateCompactNaf()
137 if (k.testBit(pos) == carry) in generateCompactWindowNaf()
248 if (diff.testBit(i)) in generateNaf()
250 naf[i - 1] = (byte)(k.testBit(i) ? -1 : 1); in generateNaf()
300 if (k.testBit(pos) == carry) in generateWindowNaf()
DECFieldElement.java82 return toBigInteger().testBit(0); in testBitZero()
258 if (!q.testBit(0)) in sqrt()
266 if (q.testBit(1)) // q == 4m + 3 in sqrt()
272 if (q.testBit(2)) // q == 8m + 5 in sqrt()
357 if (k.testBit(j)) in lucasSequence()
411 if (x.testBit(0)) in modHalf()
420 if (x.testBit(0)) in modHalfAbs()
DTnaf.java298 if (gsPlusJs.testBit(_k-c-1)) in approximateDivisionByN()
343 if (r0.testBit(0)) in tauAdicNaf()
767 if (r0.testBit(0)) in tauAdicWNaf()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DRSAKeyGenerationParameters.java30 if (!publicExponent.testBit(0)) in RSAKeyGenerationParameters()
DDHPublicKeyParameters.java46 if (p.testBit(0) in validate()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DRSAKeyGenerationParameters.java34 if (!publicExponent.testBit(0)) in RSAKeyGenerationParameters()
DDHPublicKeyParameters.java50 if (p.testBit(0) in validate()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/params/
DRSAKeyGenerationParameters.java34 if (!publicExponent.testBit(0)) in RSAKeyGenerationParameters()
DDHPublicKeyParameters.java50 if (p.testBit(0) in validate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DBigIntegers.java193 if (!M.testBit(0)) in modOddInverse()
220 if (!M.testBit(0)) in modOddInverseVar()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/
DBigIntegers.java195 if (!M.testBit(0)) in modOddInverse()
222 if (!M.testBit(0)) in modOddInverseVar()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/
DBigIntegers.java195 if (!M.testBit(0)) in modOddInverse()
222 if (!M.testBit(0)) in modOddInverseVar()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/endo/
DEndoUtil.java69 boolean extra = b.testBit(t - 1); in calculateB()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/endo/
DEndoUtil.java65 boolean extra = b.testBit(t - 1); in calculateB()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/endo/
DEndoUtil.java69 boolean extra = b.testBit(t - 1); in calculateB()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipEightByteInteger.java152 if (value.testBit(LEFTMOST_BIT_SHIFT)) { in getBytes()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
DPrimes.java167 if (!candidate.testBit(0)) in enhancedMRProbablePrimeTest()
293 if (!candidate.testBit(0)) in isMRProbablePrime()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/
DPrimes.java171 if (!candidate.testBit(0)) in enhancedMRProbablePrimeTest()
297 if (!candidate.testBit(0)) in isMRProbablePrime()

12