Home
last modified time | relevance | path

Searched refs:clen (Results 1 – 25 of 51) sorted by relevance

123

/external/curl/lib/
Ddotdot.c54 size_t clen = inlen; /* the length of the cloned input */ in Curl_dedotdotify() local
87 clen-=2; in Curl_dedotdotify()
91 clen-=3; in Curl_dedotdotify()
99 clen-=2; in Curl_dedotdotify()
104 clen-=1; in Curl_dedotdotify()
114 clen-=3; in Curl_dedotdotify()
126 clen-=2; in Curl_dedotdotify()
151 clen--; in Curl_dedotdotify()
/external/toybox/toys/posix/
Dwc.c50 int i, len, clen=1, space; in do_wc() local
71 for (i=0; i<len; i+=clen) { in do_wc()
75 clen = mbrtowc(&wchar, toybuf+i, len-i, 0); in do_wc()
76 if (clen == -1) { in do_wc()
77 clen = 1; in do_wc()
80 if (clen == -2) break; in do_wc()
81 if (clen == 0) clen=1; in do_wc()
/external/wpa_supplicant_8/src/crypto/
Dsha256-tlsprf.c32 size_t clen; in tls_prf_sha256() local
60 clen = outlen - pos; in tls_prf_sha256()
61 if (clen > SHA256_MAC_LEN) in tls_prf_sha256()
62 clen = SHA256_MAC_LEN; in tls_prf_sha256()
63 os_memcpy(out + pos, P, clen); in tls_prf_sha256()
64 pos += clen; in tls_prf_sha256()
Dsha256-kdf.c37 size_t pos, clen; in hmac_sha256_kdf() local
53 clen = outlen - pos; in hmac_sha256_kdf()
54 if (clen > SHA256_MAC_LEN) in hmac_sha256_kdf()
55 clen = SHA256_MAC_LEN; in hmac_sha256_kdf()
56 os_memcpy(out + pos, T, clen); in hmac_sha256_kdf()
57 pos += clen; in hmac_sha256_kdf()
/external/ppp/pppd/
Dchap-new.c284 int clen = 1, nlen, len; in chap_generate_challenge() local
291 clen = *p; in chap_generate_challenge()
293 memcpy(p + 1 + clen, ss->name, nlen); in chap_generate_challenge()
295 len = CHAP_HDRLEN + 1 + clen + nlen; in chap_generate_challenge()
441 int clen, nlen; in chap_respond() local
452 clen = pkt[0]; in chap_respond()
453 nlen = len - (clen + 1); in chap_respond()
456 slprintf(rname, sizeof(rname), "%.*v", nlen, pkt + clen + 1); in chap_respond()
476 clen = *p; in chap_respond()
478 memcpy(p + clen + 1, cs->name, nlen); in chap_respond()
[all …]
Dchap-md5.c48 int clen; in chap_md5_generate_challenge() local
50 clen = (int)(drand48() * (MD5_MAX_CHALLENGE - MD5_MIN_CHALLENGE)) in chap_md5_generate_challenge()
52 *cp++ = clen; in chap_md5_generate_challenge()
53 random_bytes(cp, clen); in chap_md5_generate_challenge()
Dccp.c1077 int len, clen, type, nb; local
1096 clen = len;
1101 clen = p[1];
1106 if (!ao->mppe || clen != CILEN_MPPE) {
1208 if (!ao->deflate || clen != CILEN_DEFLATE
1253 if (!ao->bsd_compress || clen != CILEN_BSD_COMPRESS) {
1295 if (!ao->predictor_1 || clen != CILEN_PREDICTOR_1) {
1308 if (!ao->predictor_2 || clen != CILEN_PREDICTOR_2) {
1333 BCOPY(p, retp, clen);
1334 retp += clen;
[all …]
/external/boringssl/src/crypto/asn1/
Dx_long.c112 int clen, pad, i; in long_i2c() local
126 clen = BN_num_bits_word(utmp); in long_i2c()
128 if(!(clen & 0x7)) pad = 1; in long_i2c()
132 clen = (clen + 7) >> 3; in long_i2c()
136 for(i = clen - 1; i >= 0; i--) { in long_i2c()
142 return clen + pad; in long_i2c()
/external/avahi/avahi-daemon/
Dglob.c179 size_t clen; in glob() local
203 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); in glob()
204 if (clen == (size_t)-1 || clen == (size_t)-2) in glob()
206 else if (clen == 0) in glob()
209 patnext += clen; in glob()
223 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); in glob()
224 if (clen == (size_t)-1 || clen == (size_t)-2) in glob()
226 else if (clen == 0) in glob()
229 patnext += clen; in glob()
654 size_t clen; in glob3() local
[all …]
/external/pcre/dist/
Dpcre_dfa_exec.c579 int clen, dlen; in internal_dfa_exec() local
620 clen = 1; /* Number of data items in the character */ in internal_dfa_exec()
622 GETCHARLENTEST(c, ptr, clen); in internal_dfa_exec()
629 clen = 0; /* This indicates the end of the subject */ in internal_dfa_exec()
649 if (clen == 0) printf("EOL\n"); in internal_dfa_exec()
697 if (clen == 0 && poptable[codevalue] != 0) in internal_dfa_exec()
904 if (clen > 0 && !IS_NEWLINE(ptr)) in internal_dfa_exec()
923 if (clen > 0) in internal_dfa_exec()
929 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0) in internal_dfa_exec()
931 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen)) in internal_dfa_exec()
[all …]
/external/libedit/src/
Dvis.c358 int clen = 0, cerr = 0, error = -1, i, shft; in istrsenvisx() local
409 clen = mbtowc(src, mbsrc, MB_LEN_MAX); in istrsenvisx()
410 if (cerr || clen < 0) { in istrsenvisx()
413 clen = 1; in istrsenvisx()
416 if (clen == 0) in istrsenvisx()
421 clen = 1; in istrsenvisx()
425 mbsrc += clen; in istrsenvisx()
427 mbslength -= clen; in istrsenvisx()
482 clen = wctomb(mbdst, *dst); in istrsenvisx()
483 if (cerr || clen < 0) { in istrsenvisx()
[all …]
/external/toybox/scripts/
Dconfig2help.c258 int clen, tlen; in main() local
279 cdashlines = grab_dashlines(&catch->help, &cfrom, &clen); in main()
284 char **new = xmalloc(sizeof(char *)*(clen+tlen)); in main()
286 memcpy(new, cdashlines, sizeof(char *)*clen); in main()
287 memcpy(new+clen, tdashlines, sizeof(char *)*tlen); in main()
290 qsort(new, clen+tlen, sizeof(char *), (void *)dashlinesort); in main()
316 tlen += clen; in main()
318 for (clen = 0; clen < tlen; clen++) in main()
319 dlist_add(&cfrom, cdashlines[clen]); in main()
/external/clang/test/OpenMP/
Dfor_simd_ast_print.cpp45 const T clen = 3; in result() local
47 #pragma omp for simd safelen(clen-1) simdlen(clen-1) in result()
49 for(T i = clen+2; i < 20; ++i) { in result()
51 v[i] = v[v-clen] + 1; in result()
Dsimd_ast_print.cpp48 const T clen = 3; in result() local
50 #pragma omp simd safelen(clen-1) simdlen(clen-1) in result()
52 for(T i = clen+2; i < 20; ++i) { in result()
54 v[i] = v[v-clen] + 1; in result()
Dparallel_for_simd_ast_print.cpp45 const T clen = 3; in result() local
47 #pragma omp parallel for simd safelen(clen-1) simdlen(clen-1) in result()
49 for(T i = clen+2; i < 20; ++i) { in result()
51 v[i] = v[v-clen] + 1; in result()
/external/icu/icu4c/source/i18n/
Duni2name.cpp98 int32_t clen = U16_LENGTH(c); in handleTransliterate() local
103 text.handleReplaceBetween(cursor, cursor+clen, str); in handleTransliterate()
106 limit += len-clen; // change in length in handleTransliterate()
108 cursor += clen; in handleTransliterate()
/external/wpa_supplicant_8/src/eap_common/
Deap_gpsk_common.c43 size_t i, n, hashlen, left, clen; in eap_gpsk_gkdf_cmac() local
62 clen = left > hashlen ? hashlen : left; in eap_gpsk_gkdf_cmac()
63 os_memcpy(opos, hash, clen); in eap_gpsk_gkdf_cmac()
64 opos += clen; in eap_gpsk_gkdf_cmac()
65 left -= clen; in eap_gpsk_gkdf_cmac()
78 size_t i, n, hashlen, left, clen; in eap_gpsk_gkdf_sha256() local
97 clen = left > hashlen ? hashlen : left; in eap_gpsk_gkdf_sha256()
98 os_memcpy(opos, hash, clen); in eap_gpsk_gkdf_sha256()
99 opos += clen; in eap_gpsk_gkdf_sha256()
100 left -= clen; in eap_gpsk_gkdf_sha256()
Deap_pax_common.c59 size_t clen = left > EAP_PAX_MAC_LEN ? EAP_PAX_MAC_LEN : left; in eap_pax_kdf() local
62 os_memcpy(pos, mac, clen); in eap_pax_kdf()
63 pos += clen; in eap_pax_kdf()
64 left -= clen; in eap_pax_kdf()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeNameTransliterator.java60 int clen = UTF16.getCharCount(c); in handleTransliterate() local
61 text.replace(cursor, cursor+clen, str.toString()); in handleTransliterate()
64 limit += len-clen; // change in length in handleTransliterate()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DUnicodeNameTransliterator.java59 int clen = UTF16.getCharCount(c); in handleTransliterate() local
60 text.replace(cursor, cursor+clen, str.toString()); in handleTransliterate()
63 limit += len-clen; // change in length in handleTransliterate()
/external/e2fsprogs/lib/ext2fs/
Dinode.c529 int clen, i, inodes_per_block, length; in ext2fs_read_inode_full() local
588 clen = length; in ext2fs_read_inode_full()
590 clen = fs->blocksize - offset; in ext2fs_read_inode_full()
601 clen); in ext2fs_read_inode_full()
604 length -= clen; in ext2fs_read_inode_full()
605 ptr += clen; in ext2fs_read_inode_full()
639 int clen, i, length; in ext2fs_write_inode_full() local
711 clen = length; in ext2fs_write_inode_full()
713 clen = fs->blocksize - offset; in ext2fs_write_inode_full()
725 ptr, clen); in ext2fs_write_inode_full()
[all …]
/external/wpa_supplicant_8/src/tls/
Dtlsv1_record.c156 size_t clen; in tlsv1_record_send() local
218 clen = buf + buf_size - pos; in tlsv1_record_send()
219 if (clen < rl->hash_size) { in tlsv1_record_send()
226 if (crypto_hash_finish(hmac, pos, &clen) < 0) { in tlsv1_record_send()
232 pos, clen); in tlsv1_record_send()
233 pos += clen; in tlsv1_record_send()
Dtlsv1_client_write.c471 size_t clen; in tlsv1_key_x_rsa() local
494 clen = end - *pos; in tlsv1_key_x_rsa()
498 *pos, &clen); in tlsv1_key_x_rsa()
506 WPA_PUT_BE16(*pos - 2, clen); in tlsv1_key_x_rsa()
508 *pos, clen); in tlsv1_key_x_rsa()
509 *pos += clen; in tlsv1_key_x_rsa()
577 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local
712 clen = end - pos; in tls_write_client_certificate_verify()
715 pos, &clen) < 0) { in tls_write_client_certificate_verify()
721 WPA_PUT_BE16(signed_start, clen); in tls_write_client_certificate_verify()
[all …]
/external/libpcap/
Dpcap-usb-linux.c788 int clen = handle->snapshot - sizeof(pcap_usb_header); in usb_read_linux_bin() local
793 info.data_len = clen; in usb_read_linux_bin()
816 if (info.hdr->data_len < clen) in usb_read_linux_bin()
817 clen = info.hdr->data_len; in usb_read_linux_bin()
818 info.hdr->data_len = clen; in usb_read_linux_bin()
819 pkth.caplen = clen + sizeof(pcap_usb_header); in usb_read_linux_bin()
850 int clen, max_clen; in usb_read_linux_mmap() local
895 clen = max_clen; in usb_read_linux_mmap()
896 if (hdr->data_len < clen) in usb_read_linux_mmap()
897 clen = hdr->data_len; in usb_read_linux_mmap()
[all …]
/external/elfutils/libcpu/
Di386_disasm.c389 uint_fast8_t clen = len >> 4; in i386_disasm() local
391 const uint8_t *next_curr = curr + clen + (len - clen) * 2; in i386_disasm()
394 assert (curr + clen + 2 * (len - clen) <= match_end); in i386_disasm()
400 if (data > begin && codep[-1] == *curr && clen > 0) in i386_disasm()
405 --clen; in i386_disasm()
415 while (clen > 0) in i386_disasm()
420 --clen; in i386_disasm()

123