Home
last modified time | relevance | path

Searched refs:ulen (Results 1 – 25 of 37) sorted by relevance

12

/third_party/openssl/crypto/pkcs12/
Dp12_utl.c19 int ulen, i; in OPENSSL_asc2uni() local
26 ulen = asclen * 2 + 2; in OPENSSL_asc2uni()
27 if ((unitmp = OPENSSL_malloc(ulen)) == NULL) { in OPENSSL_asc2uni()
31 for (i = 0; i < ulen - 2; i += 2) { in OPENSSL_asc2uni()
36 unitmp[ulen - 2] = 0; in OPENSSL_asc2uni()
37 unitmp[ulen - 1] = 0; in OPENSSL_asc2uni()
39 *unilen = ulen; in OPENSSL_asc2uni()
82 int ulen, i, j; in OPENSSL_utf82uni() local
89 for (ulen = 0, i = 0; i < asclen; i += j) { in OPENSSL_utf82uni()
115 ulen += 2*2; in OPENSSL_utf82uni()
[all …]
/third_party/node/deps/openssl/openssl/crypto/pkcs12/
Dp12_utl.c19 int ulen, i; in OPENSSL_asc2uni() local
26 ulen = asclen * 2 + 2; in OPENSSL_asc2uni()
27 if ((unitmp = OPENSSL_malloc(ulen)) == NULL) { in OPENSSL_asc2uni()
31 for (i = 0; i < ulen - 2; i += 2) { in OPENSSL_asc2uni()
36 unitmp[ulen - 2] = 0; in OPENSSL_asc2uni()
37 unitmp[ulen - 1] = 0; in OPENSSL_asc2uni()
39 *unilen = ulen; in OPENSSL_asc2uni()
82 int ulen, i, j; in OPENSSL_utf82uni() local
89 for (ulen = 0, i = 0; i < asclen; i += j) { in OPENSSL_utf82uni()
115 ulen += 2*2; in OPENSSL_utf82uni()
[all …]
/third_party/toybox/toys/pending/
Duserdel.c29 int ulen = strlen(username); in update_groupfiles() local
55 if (strncmp(line, toybuf, ulen+1)) { in update_groupfiles()
60 if (n[ulen] == ',') { in update_groupfiles()
62 n += ulen + 1; in update_groupfiles()
65 } else if (!n[ulen]) { in update_groupfiles()
70 } else n += ulen; in update_groupfiles()
/third_party/icu/icu4c/source/test/cintltst/
Dutransts.c596 int32_t ulen; in TestGetRulesAndSourceSet() local
599 ulen = utrans_toRules(utrans, false, ubuf, kUBufMax, &status); in TestGetRulesAndSourceSet()
600 if ( U_FAILURE(status) || ulen <= 50 || ulen >= 100) { in TestGetRulesAndSourceSet()
602 u_errorName(status), ulen); in TestGetRulesAndSourceSet()
606 ulen = utrans_toRules(utrans, false, NULL, 0, &status); in TestGetRulesAndSourceSet()
607 if ( status != U_BUFFER_OVERFLOW_ERROR || ulen <= 50 || ulen >= 100) { in TestGetRulesAndSourceSet()
609 u_errorName(status), ulen); in TestGetRulesAndSourceSet()
613 ulen = utrans_toRules(utrans, true, ubuf, kUBufMax, &status); in TestGetRulesAndSourceSet()
614 if ( U_FAILURE(status) || ulen <= 100 || ulen >= 200) { in TestGetRulesAndSourceSet()
616 u_errorName(status), ulen); in TestGetRulesAndSourceSet()
[all …]
Dcnumtst.c2507 int32_t ulen, radix = unumsys_getRadix(unumsys); in TestUNumberingSystem() local
2514 ulen = unumsys_getDescription(unumsys, ubuf, kNumSysDescripBufMax, &status); in TestUNumberingSystem()
2515 (void)ulen; // Suppress variable not used warning. in TestUNumberingSystem()
2821 int32_t ulen = unum_toPattern(unumfmt, false, ubuf, kUBufSize, &status); in TestCurrFmtNegSameAsPositive() local
2825 … result wrong, expected %s, got %s\n", aescstrdup(currFmtToPatExpected,-1), aescstrdup(ubuf,ulen)); in TestCurrFmtNegSameAsPositive()
2829 ulen = unum_formatDouble(unumfmt, -100.0, ubuf, kUBufSize, NULL, &status); in TestCurrFmtNegSameAsPositive()
2833 …result wrong, expected %s, got %s\n", aescstrdup(currFmtResultExpected,-1), aescstrdup(ubuf,ulen)); in TestCurrFmtNegSameAsPositive()
3138 …int32_t ulen = unum_formatDoubleForFields(unum, itemPtr->value, ubuf, kUBufSize, fpositer, &status… in TestFormatForFields() local
3149 …itemPtr->locale, aescstrdup(ubuf, ulen), fptr->field, fptr->beginPos, fptr->endPos, field, beginPo… in TestFormatForFields()
3152 … itemPtr->locale, aescstrdup(ubuf, ulen), field, beginPos, endPos); in TestFormatForFields()
[all …]
Dcdateintervalformattest.c326 int32_t ulen, uelen; in TestFPos_SkelWithSeconds() local
328 ulen = u_unescape(locSkelItemPtr->skeleton, ubuf, kSizeUBuf); in TestFPos_SkelWithSeconds()
329 udifmt = udtitvfmt_open(locSkelItemPtr->locale, ubuf, ulen, zoneGMT, -1, &status); in TestFPos_SkelWithSeconds()
343ulen = udtitvfmt_format(udifmt, startTime, startTime + *deltasPtr, ubuf, kSizeUBuf, &fpos, &status… in TestFPos_SkelWithSeconds()
347 } else if ( ulen != uelen || u_strncmp(ubuf,uebuf,uelen) != 0 || in TestFPos_SkelWithSeconds()
349 u_strToUTF8(bbuf, kSizeBBuf, NULL, ubuf, ulen, &status); in TestFPos_SkelWithSeconds()
/third_party/openssl/apps/lib/
Dwin32_init.c145 int wlen, ulen, valid = 1; in win32_utf8argv() local
259 ulen = 0; in win32_utf8argv()
261 ulen = WideCharToMultiByte(CP_UTF8, 0, warg, wlen, in win32_utf8argv()
263 if (ulen <= 0) in win32_utf8argv()
267 arg = malloc(ulen + 1); in win32_utf8argv()
275 arg, ulen, NULL, NULL); in win32_utf8argv()
276 arg[ulen] = '\0'; in win32_utf8argv()
/third_party/node/deps/openssl/openssl/apps/lib/
Dwin32_init.c145 int wlen, ulen, valid = 1; in win32_utf8argv() local
259 ulen = 0; in win32_utf8argv()
261 ulen = WideCharToMultiByte(CP_UTF8, 0, warg, wlen, in win32_utf8argv()
263 if (ulen <= 0) in win32_utf8argv()
267 arg = malloc(ulen + 1); in win32_utf8argv()
275 arg, ulen, NULL, NULL); in win32_utf8argv()
276 arg[ulen] = '\0'; in win32_utf8argv()
/third_party/toybox/toys/posix/
Dgrep.c150 size_t ulen; in do_grep() local
157 ulen = len = getdelim(&line, &ulen, TT.indelim, file); in do_grep()
160 if (line[ulen-1] == TT.indelim) line[--ulen] = 0; in do_grep()
208 shoe->rc = regexec0(&shoe->r, start, ulen-(start-line), 1, in do_grep()
246 mm->rm_eo = ulen-(start-line); in do_grep()
253 mm->rm_eo = ulen-(start-line); in do_grep()
295 outline(FLAG(color) ? 0 : line, ':', name, lcount, bcount, ulen); in do_grep()
317 if (ulen > start-line) xputsl(start, ulen-(start-line)); in do_grep()
325 outline(line, '-', name, lcount, 0, ulen); in do_grep()
329 unsigned *uu, ul = (ulen|3)+1; in do_grep()
[all …]
/third_party/libwebsockets/lib/plat/unix/
Dunix-caps.c57 size_t ulen; local
62 ulen = (size_t)(unsigned int)lws_ptr_diff(colon, u_colon_g);
63 if (ulen < 2 || ulen > sizeof(u) - 1)
66 memcpy(u, u_colon_g, ulen);
67 u[ulen] = '\0';
/third_party/skia/third_party/externals/tint/test/array/
Dsize.wgsl.expected.spvasm11 OpName %ulen "ulen"
21 %ulen = OpConstant %uint 4
25 %_arr_float_ulen = OpTypeArray %float %ulen
Dsize.wgsl.expected.wgsl3 let ulen = 4u;
10 var unsigned_constant : array<f32, ulen>;
Dsize.wgsl2 let ulen = 4u;
9 var unsigned_constant : array<f32, ulen>;
Dsize.wgsl.expected.hlsl2 static const uint ulen = 4u;
/third_party/lwip/src/netif/ppp/
Dupap.c604 int mlen, ulen, wlen; in upap_printpkt() local
627 ulen = p[0]; in upap_printpkt()
628 if (len < ulen + 2) in upap_printpkt()
630 wlen = p[ulen + 1]; in upap_printpkt()
631 if (len < ulen + wlen + 2) in upap_printpkt()
634 pwd = (const u_char *) (p + ulen + 2); in upap_printpkt()
635 p += ulen + wlen + 2; in upap_printpkt()
636 len -= ulen + wlen + 2; in upap_printpkt()
638 ppp_print_string(user, ulen, printer, arg); in upap_printpkt()
/third_party/curl/lib/
Dmqtt.c190 static int add_user(const char *username, const size_t ulen, in add_user() argument
195 if(ulen > 0xffff) in add_user()
201 pkt[start] = (unsigned char)((ulen >> 8) & 0xFF); in add_user()
202 pkt[start + 1] = (unsigned char)(ulen & 0xFF); in add_user()
203 memcpy(&pkt[start + 2], username, ulen); in add_user()
268 const size_t ulen = strlen(username); in mqtt_connect() local
274 payloadlen = ulen + plen + MQTT_CLIENTID_LEN + 2; in mqtt_connect()
277 if(ulen) in mqtt_connect()
313 start_pwd = start_user + ulen; in mqtt_connect()
315 if(ulen) { in mqtt_connect()
[all …]
/third_party/libwebsockets/lib/jose/jwk/
Djwk.c163 unsigned int ulen = (unsigned int)len; in lws_jwk_dup_oct() local
165 jwk->e[LWS_GENCRYPTO_KTY_OCT].buf = lws_malloc(ulen, __func__); in lws_jwk_dup_oct()
170 jwk->e[LWS_GENCRYPTO_OCT_KEYEL_K].len = ulen; in lws_jwk_dup_oct()
172 memcpy(jwk->e[LWS_GENCRYPTO_KTY_OCT].buf, key, ulen); in lws_jwk_dup_oct()
/third_party/curl/tests/server/
Dsocksd.c432 unsigned char ulen; in sockit() local
443 ulen = buffer[SOCKS5_ULEN]; in sockit()
444 if(rc < 4 + ulen) { in sockit()
448 plen = buffer[SOCKS5_ULEN + ulen + 1]; in sockit()
449 if(rc < 3 + ulen + plen) { in sockit()
450 logmsg("Too short packet for ulen %d plen %d: %d", ulen, plen, rc); in sockit()
453 if((ulen != strlen(config.user)) || in sockit()
455 memcmp(&buffer[SOCKS5_UNAME], config.user, ulen) || in sockit()
456 memcmp(&buffer[SOCKS5_UNAME + ulen + 1], config.password, plen)) { in sockit()
/third_party/python/Objects/
Drangeobject.c1087 unsigned long ulen; in range_iter() local
1108 ulen = get_len_of_range(lstart, lstop, lstep); in range_iter()
1109 if (ulen > (unsigned long)LONG_MAX) { in range_iter()
1113 if (ulen) { in range_iter()
1123 return fast_range_iter(lstart, lstop, lstep, (long)ulen); in range_iter()
1148 unsigned long ulen; in range_reverse() local
1203 ulen = get_len_of_range(lstart, lstop, lstep); in range_reverse()
1204 if (ulen > (unsigned long)LONG_MAX) in range_reverse()
1208 new_start = (long)(new_stop + ulen * lstep); in range_reverse()
1209 return fast_range_iter(new_start, new_stop, -lstep, (long)ulen); in range_reverse()
/third_party/icu/icu4c/source/extra/uconv/
Duconv.cpp613 int32_t ulen; in convertFile() local
775 ulen = (int32_t)(unibufp - unibuf); in convertFile()
776 u.releaseBuffer(U_SUCCESS(err) ? ulen : 0); in convertFile()
833 if (ulen == 0) { in convertFile()
843 --ulen; in convertFile()
848 memmove(fromoffsets, fromoffsets + 1, ulen * 4); in convertFile()
892 ulen = u.length(); in convertFile()
905 memmove(fromoffsets + 1, fromoffsets, ulen * 4); in convertFile()
910 ++ulen; in convertFile()
931 unibuf + ulen, in convertFile()
/third_party/skia/third_party/externals/icu/source/extra/uconv/
Duconv.cpp613 int32_t ulen; in convertFile() local
775 ulen = (int32_t)(unibufp - unibuf); in convertFile()
776 u.releaseBuffer(U_SUCCESS(err) ? ulen : 0); in convertFile()
833 if (ulen == 0) { in convertFile()
843 --ulen; in convertFile()
848 memmove(fromoffsets, fromoffsets + 1, ulen * 4); in convertFile()
892 ulen = u.length(); in convertFile()
905 memmove(fromoffsets + 1, fromoffsets, ulen * 4); in convertFile()
910 ++ulen; in convertFile()
931 unibuf + ulen, in convertFile()
/third_party/python/Modules/_decimal/libmpdec/
Dmpdecimal.c5530 mpd_size_t ulen, mpd_size_t vlen, in _mpd_kmul() argument
5536 assert(ulen >= 4); in _mpd_kmul()
5537 assert(ulen >= vlen); in _mpd_kmul()
5539 *rsize = _kmul_resultsize(ulen, vlen); in _mpd_kmul()
5544 m = _kmul_worksize(ulen, MPD_KARATSUBA_BASECASE); in _mpd_kmul()
5550 _karatsuba_rec(result, u, v, w, ulen, vlen); in _mpd_kmul()
5653 mpd_size_t ulen, mpd_size_t vlen, in _mpd_fntmul() argument
5664 *rsize = add_size_t(ulen, vlen); in _mpd_fntmul()
5679 memcpy(c1, u, ulen * (sizeof *c1)); in _mpd_fntmul()
5680 memcpy(c2, u, ulen * (sizeof *c2)); in _mpd_fntmul()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dfils_hlp.c484 u16 sport, dport, ulen; in fils_process_hlp_udp() local
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
497 if (ulen < sizeof(*udph) || ulen > len - sizeof(*iph)) in fils_process_hlp_udp()
502 ulen - sizeof(*udph)); in fils_process_hlp_udp()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dfils_hlp.c484 u16 sport, dport, ulen; in fils_process_hlp_udp() local
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
497 if (ulen < sizeof(*udph) || ulen > len - sizeof(*iph)) in fils_process_hlp_udp()
502 ulen - sizeof(*udph)); in fils_process_hlp_udp()
/third_party/protobuf/src/google/protobuf/stubs/
Dstringpiece.cc125 const size_t ulen = length_; in rfind() local
126 if (s.length_ == 0) return std::min(ulen, pos); in rfind()
128 const char* last = ptr_ + std::min(ulen - s.length_, pos) + s.length_; in rfind()

12