Home
last modified time | relevance | path

Searched refs:dig (Results 1 – 25 of 119) sorted by relevance

12345

/external/llvm-project/libcxx/test/std/numerics/bit/bitops.count/
Dcountl_zero.pass.cpp34 const int dig = std::numeric_limits<T>::digits; in constexpr_test() local
35 return std::countl_zero(T(0)) == dig in constexpr_test()
36 && std::countl_zero(T(1)) == dig - 1 in constexpr_test()
37 && std::countl_zero(T(2)) == dig - 2 in constexpr_test()
38 && std::countl_zero(T(3)) == dig - 2 in constexpr_test()
39 && std::countl_zero(T(4)) == dig - 3 in constexpr_test()
40 && std::countl_zero(T(5)) == dig - 3 in constexpr_test()
41 && std::countl_zero(T(6)) == dig - 3 in constexpr_test()
42 && std::countl_zero(T(7)) == dig - 3 in constexpr_test()
43 && std::countl_zero(T(8)) == dig - 4 in constexpr_test()
[all …]
Dcountl_one.pass.cpp34 const int dig = std::numeric_limits<T>::digits; in constexpr_test() local
36 return std::countl_one(max) == dig in constexpr_test()
37 && std::countl_one(T(max - 1)) == dig - 1 in constexpr_test()
38 && std::countl_one(T(max - 2)) == dig - 2 in constexpr_test()
39 && std::countl_one(T(max - 3)) == dig - 2 in constexpr_test()
40 && std::countl_one(T(max - 4)) == dig - 3 in constexpr_test()
41 && std::countl_one(T(max - 5)) == dig - 3 in constexpr_test()
42 && std::countl_one(T(max - 6)) == dig - 3 in constexpr_test()
43 && std::countl_one(T(max - 7)) == dig - 3 in constexpr_test()
44 && std::countl_one(T(max - 8)) == dig - 4 in constexpr_test()
[all …]
Dcountr_zero.pass.cpp34 const int dig = std::numeric_limits<T>::digits; in constexpr_test() local
35 return std::countr_zero(T(0)) == dig in constexpr_test()
Dcountr_one.pass.cpp34 const int dig = std::numeric_limits<T>::digits; in constexpr_test() local
45 && std::countr_one(std::numeric_limits<T>::max()) == dig in constexpr_test()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/bc/
DBcDigestCalculatorProvider.java20 Digest dig = digestProvider.get(algorithm); in get() local
22 final DigestOutputStream stream = new DigestOutputStream(dig); in get()
46 private Digest dig;
48 DigestOutputStream(Digest dig)
50 this.dig = dig;
56 dig.update(bytes, off, len);
62 dig.update(bytes, 0, bytes.length);
68 dig.update((byte)b);
73 byte[] d = new byte[dig.getDigestSize()];
75 dig.doFinal(d, 0);
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaDigestCalculatorProviderBuilder.java51 MessageDigest dig = helper.createDigest(algorithm); in build() local
53 stream = new DigestOutputStream(dig); in build()
84 private MessageDigest dig;
86 DigestOutputStream(MessageDigest dig)
88 this.dig = dig;
94 dig.update(bytes, off, len);
100 dig.update(bytes);
106 dig.update((byte)b);
111 return dig.digest();
DOperatorHelper.java359 MessageDigest dig; in createDigest() local
365dig = helper.createMessageDigest("SHAKE256-" + ASN1Integer.getInstance(digAlgId.getParameters()).g… in createDigest()
369dig = helper.createMessageDigest(MessageDigestUtils.getDigestName(digAlgId.getAlgorithm())); in createDigest()
381 dig = helper.createMessageDigest(digestAlgorithm); in createDigest()
389 return dig; in createDigest()
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/ta_prod_signing_scripts/
Dstitch_ta.py56 assert_file_exists(args.dig)
77 print('Digest Filename:', args.dig)
81 dig_in = open(args.dig, 'r')
82 dig = base64.b64decode(dig_in.read())
85 print("Digest is", dig)
86 print("Digest is", base64.b64encode(dig))
98 f.write(dig)
DREADME.md9 …gned TA. The digest will be stored in `6b51f84e-a93d-456c-ab0e29ad8f264a47.dig` in the same folder…
13 3. Send the `*.dig` file to the Security team for them to sign. They will return a `*.dig.signed` f…
16 …e29ad8f264a47.stripped.elf" --dig "6b51f84e-a93d-456c-ab0e29ad8f264a47.dig" --sig "6b51f84e-a93d-4…
Dgenerate_digest.py74 dig = h.digest()
78 print("Digest is:", base64.b64encode(dig))
86 dig_out.write(base64.b64encode(dig))
/external/mtools/
DmissFuncs.c177 int dig; in getdigit() local
182 dig = a - '0'; in getdigit()
184 dig = a - 'a' + 10; in getdigit()
186 dig = a - 'A' + 10; in getdigit()
187 if(dig >= max) in getdigit()
190 return dig; in getdigit()
195 int accu, dig; in strtoul() local
220 while( (dig = getdigit(*string, base)) != -1 ) { in strtoul()
221 accu = accu * base + dig; in strtoul()
/external/ltp/testcases/network/stress/dns/
Ddns-stress01-rmt.sh51 dig @$srv_ipaddr -p $port node${min_id}.${domain} $record > ans.log 2>&1 || \
59 dig @$srv_ipaddr -p $port node${id}.${domain} $record \
67 dig @$srv_ipaddr -p $port node${id}.${domain} $record > ans.log 2>&1 || \
Ddns-stress02-rmt.sh54 dig @$srv_ipaddr $opt -p $port -x ${net}${sep}${min_id} $record \
63 dig @$srv_ipaddr $opt -p $port -x ${net}${sep}${id} $record \
71 dig @$srv_ipaddr $opt -p $port -x ${net}${sep}${min_id} $record \
/external/llvm-project/flang/lib/Decimal/
Dbinary-to-decimal.cpp104 Digit dig{digit_[digits_ - 1]}; in ConvertToDecimal() local
107 Digit newDig{dig / 100}; in ConvertToDecimal()
108 auto d{static_cast<std::uint32_t>(dig) - in ConvertToDecimal()
110 dig = newDig; in ConvertToDecimal()
122 Digit dig{digit_[j]}; in ConvertToDecimal() local
125 Digit newDig{dig / 100}; in ConvertToDecimal()
126 auto d{static_cast<std::uint32_t>(dig) - in ConvertToDecimal()
128 dig = newDig; in ConvertToDecimal()
/external/llvm-project/clang/test/Analysis/
Dconversion.c166 int dig; in libraryFunction2() local
172 dig = n = code = 0; in libraryFunction2()
174 if (dig < 4 && dostuff()) in libraryFunction2()
/external/bc/src/
Dnum.c414 static void bc_num_shift(BcNum *restrict n, BcBigDig dig) { in bc_num_shift() argument
420 assert(dig < BC_BASE_DIGS); in bc_num_shift()
422 pow = bc_num_pow10[dig]; in bc_num_shift()
423 dig = bc_num_pow10[BC_BASE_DIGS - dig]; in bc_num_shift()
428 temp = carry * dig; in bc_num_shift()
438 BcBigDig dig; in bc_num_shiftLeft() local
453 dig = (BcBigDig) (places % BC_BASE_DIGS); in bc_num_shiftLeft()
454 shift = (dig != 0); in bc_num_shiftLeft()
466 revdig = dig ? BC_BASE_DIGS - dig : 0; in bc_num_shiftLeft()
490 if (shift) bc_num_shift(n, BC_BASE_DIGS - dig); in bc_num_shiftLeft()
[all …]
/external/linux-kselftest/tools/testing/selftests/tpm2/
Dtpm2.py432 def extend_pcr(self, i, dig, bank_alg = TPM2_ALG_SHA1): argument
434 assert(ds == len(dig))
447 1, bank_alg, dig)
484 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg)
485 if not dig:
500 len(dig), str(dig),
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/
DMSOutlookKeyIdCalculator.java16 SHA1Digest dig = new SHA1Digest(); in calculateKeyId() local
17 byte[] hash = new byte[dig.getDigestSize()]; in calculateKeyId()
29 dig.update(spkiEnc, 0, spkiEnc.length); in calculateKeyId()
31 dig.doFinal(hash, 0); in calculateKeyId()
/external/ppp/pppd/
Deap.c321 u_char dig[SHA_DIGESTSIZE]; in pncrypt_setkey() local
332 SHA1Final(dig, &ctxt); in pncrypt_setkey()
333 return (DesSetkey(dig)); in pncrypt_setkey()
651 u_char clear[8], cipher[8], dig[SHA_DIGESTSIZE], *optr, *cp; local
824 SHA1Final(dig, &ctxt);
825 cp = dig;
826 while (cp < dig + SHA_DIGESTSIZE)
1256 u_char dig[SHA_DIGESTSIZE]; local
1278 SHA1Final(dig, &ctxt);
1279 for (digp = dig; digp < dig + SHA_DIGESTSIZE; digp++)
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java1009 Digest dig = new SHA1Digest(); in engineLoad() local
1010 DigestInputStream dgIn = new DigestInputStream(cIn, dig); in engineLoad()
1015 byte[] hash = new byte[dig.getDigestSize()]; in engineLoad()
1016 dig.doFinal(hash, 0); in engineLoad()
1020 byte[] oldHash = new byte[dig.getDigestSize()]; in engineLoad()
1052 byte[] dig = dgOut.getDigest(); in engineStore()
1054 cOut.write(dig); in engineStore()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java1004 Digest dig = new SHA1Digest(); in engineLoad() local
1005 DigestInputStream dgIn = new DigestInputStream(cIn, dig); in engineLoad()
1010 byte[] hash = new byte[dig.getDigestSize()]; in engineLoad()
1011 dig.doFinal(hash, 0); in engineLoad()
1015 byte[] oldHash = new byte[dig.getDigestSize()]; in engineLoad()
1047 byte[] dig = dgOut.getDigest(); in engineStore()
1049 cOut.write(dig); in engineStore()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java1009 Digest dig = new SHA1Digest(); in engineLoad() local
1010 DigestInputStream dgIn = new DigestInputStream(cIn, dig); in engineLoad()
1015 byte[] hash = new byte[dig.getDigestSize()]; in engineLoad()
1016 dig.doFinal(hash, 0); in engineLoad()
1020 byte[] oldHash = new byte[dig.getDigestSize()]; in engineLoad()
1052 byte[] dig = dgOut.getDigest(); in engineStore()
1054 cOut.write(dig); in engineStore()
/external/python/cpython3/Python/
Ddtoa.c2284 int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1, in _Py_dg_dtoa() local
2727 dig = quorem(b,S) + '0'; in _Py_dg_dtoa()
2739 if (dig == '9') in _Py_dg_dtoa()
2742 dig++; in _Py_dg_dtoa()
2743 *s++ = dig; in _Py_dg_dtoa()
2757 if ((j1 > 0 || (j1 == 0 && dig & 1)) in _Py_dg_dtoa()
2758 && dig++ == '9') in _Py_dg_dtoa()
2762 *s++ = dig; in _Py_dg_dtoa()
2766 if (dig == '9') { /* possible if i == 1 */ in _Py_dg_dtoa()
2771 *s++ = dig + 1; in _Py_dg_dtoa()
[all …]
/external/llvm-project/clang/test/Modules/
Dinferred-submodules.m13 void dig() { function
/external/clang/test/Modules/
Dinferred-submodules.m13 void dig() { function

12345