Home
last modified time | relevance | path

Searched refs:buflen (Results 101 - 125 of 802) sorted by relevance

12345678910>>...33

/third_party/mbedtls/programs/pkey/
H A Ddh_client.c62 size_t n, buflen; in main() local
146 n = buflen = (buf[0] << 8) | buf[1]; in main()
147 if (buflen < 1 || buflen > sizeof(buf)) { in main()
162 p = buf, end = buf + buflen; in main()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dlibbitmask.c120 * than buflen chars to buf.
126 int bitmask_displayhex(char *buf, int buflen, const struct bitmask *bmp) in bitmask_displayhex() argument
132 if (buflen < 1) in bitmask_displayhex()
142 cnt += snprintf(buf + cnt, MAX(buflen - cnt, 0), "%s%0*x", in bitmask_displayhex()
150 * emit(buf, buflen, rbot, rtop, len)
153 * or range to buf+len, suppressing output past buf+buflen, with optional
158 static inline int emit(char *buf, int buflen, int rbot, int rtop, int len) in emit() argument
161 len += snprintf(buf + len, MAX(buflen - len, 0), ","); in emit()
163 len += snprintf(buf + len, MAX(buflen - len, 0), "%d", rbot); in emit()
166 snprintf(buf + len, MAX(buflen in emit()
185 bitmask_displaylist(char *buf, int buflen, const struct bitmask *bmp) bitmask_displaylist() argument
[all...]
/third_party/openssl/apps/
H A Drehash.c358 int n, numfiles, nextid, buflen, errs = 0; in do_dir() local
369 buflen = strlen(dirname); in do_dir()
370 pathsep = (buflen && !ends_with_dirsep(dirname)) ? "/": ""; in do_dir()
371 buflen += NAME_MAX + 1 + 1; in do_dir()
372 buf = app_malloc(buflen, "filename buffer"); in do_dir()
397 if (BIO_snprintf(buf, buflen, "%s%s%s", in do_dir()
398 dirname, pathsep, filename) >= buflen) in do_dir()
420 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir()
430 BIO_snprintf(buf, buflen, "%s%s%n%08x.%s%d", in do_dir()
452 BIO_snprintf(buf, buflen, " in do_dir()
[all...]
/third_party/python/Modules/_blake2/impl/
H A Dblake2b.c355 uint32_t left = S->buflen; in blake2b_update()
361 S->buflen += fill; in blake2b_update()
365 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update()
372 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update()
386 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final()
390 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_final()
391 memmove( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen ); in blake2b_final()
394 blake2b_increment_counter( S, S->buflen ); in blake2b_final()
396 memset( S->buf + S->buflen, 0, 2 * BLAKE2B_BLOCKBYTES - S->buflen ); /* Paddin in blake2b_final()
[all...]
H A Dblake2b-ref.c298 uint32_t left = S->buflen; in blake2b_update()
304 S->buflen += fill; in blake2b_update()
308 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update()
315 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update()
331 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final()
335 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_final()
336 memmove( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen ); in blake2b_final()
339 blake2b_increment_counter( S, S->buflen ); in blake2b_final()
341 memset( S->buf + S->buflen, 0, 2 * BLAKE2B_BLOCKBYTES - S->buflen ); /* Paddin in blake2b_final()
[all...]
H A Dblake2s-ref.c288 uint32_t left = S->buflen; in blake2s_update()
294 S->buflen += fill; in blake2s_update()
298 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update()
305 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2s_update()
321 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final()
325 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_final()
326 memmove( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen ); in blake2s_final()
329 blake2s_increment_counter( S, ( uint32_t )S->buflen ); in blake2s_final()
331 memset( S->buf + S->buflen, 0, 2 * BLAKE2S_BLOCKBYTES - S->buflen ); /* Paddin in blake2s_final()
[all...]
H A Dblake2s.c328 size_t left = S->buflen; in blake2s_update()
334 S->buflen += fill; in blake2s_update()
338 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update()
345 S->buflen += inlen; // Be lazy, do not compress in blake2s_update()
361 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final()
365 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_final()
366 memmove( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen ); in blake2s_final()
369 blake2s_increment_counter( S, ( uint32_t )S->buflen ); in blake2s_final()
371 memset( S->buf + S->buflen, 0, 2 * BLAKE2S_BLOCKBYTES - S->buflen ); /* Paddin in blake2s_final()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Djson.c511 size_t buflen; in json_get_member_base64url() local
518 os_strlen(token->string), &buflen); in json_get_member_base64url()
521 ret = wpabuf_alloc_ext_data(buf, buflen); in json_get_member_base64url()
552 char *buf, size_t buflen) in json_print_token()
560 ret = os_snprintf(buf + len, buflen - len, "[%d:%s:%s]", in json_print_token()
563 if (os_snprintf_error(buflen - len, ret)) { in json_print_token()
567 json_print_token(token->child, depth + 1, buf, buflen); in json_print_token()
568 json_print_token(token->sibling, depth, buf, buflen); in json_print_token()
572 void json_print_tree(struct json_token *root, char *buf, size_t buflen) in json_print_tree() argument
575 json_print_token(root, 1, buf, buflen); in json_print_tree()
551 json_print_token(struct json_token *token, int depth, char *buf, size_t buflen) json_print_token() argument
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Ducaconf.cpp212 int32_t buflen = u_parseString(lineB, buffer, 1024, &first, &status); in testConformance() local
218 buffer[buflen] = 0; in testConformance()
220 if(skipLineBecauseOfBug(buffer, buflen, skipFlags)) { in testConformance()
225 int32_t resLen = withSortKeys ? coll->getSortKey(buffer, buflen, newSk, 1024) : 0; in testConformance()
230 int32_t cmpres = coll->compare(oldB, oldBlen, buffer, buflen, status); in testConformance()
231 int32_t cmpres2 = coll->compare(buffer, buflen, oldB, oldBlen, status); in testConformance()
289 oldBlen = buflen; in testConformance()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dwifi_display.c353 char *buf, size_t buflen) in wifi_display_subelem_get()
364 res = wpa_snprintf_hex(buf, buflen, wpabuf_head(ie), in wifi_display_subelem_get()
377 return wpa_snprintf_hex(buf, buflen, in wifi_display_subelem_get()
388 size_t buflen; in wifi_display_subelem_hex() local
399 buflen = wpabuf_len(wfd_subelems); in wifi_display_subelem_hex()
401 while (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN < buflen) { in wifi_display_subelem_hex()
403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen) in wifi_display_subelem_hex()
352 wifi_display_subelem_get(struct wpa_global *global, char *cmd, char *buf, size_t buflen) wifi_display_subelem_get() argument
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dwifi_display.c353 char *buf, size_t buflen) in wifi_display_subelem_get()
364 res = wpa_snprintf_hex(buf, buflen, wpabuf_head(ie), in wifi_display_subelem_get()
377 return wpa_snprintf_hex(buf, buflen, in wifi_display_subelem_get()
388 size_t buflen; in wifi_display_subelem_hex() local
399 buflen = wpabuf_len(wfd_subelems); in wifi_display_subelem_hex()
401 while (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN < buflen) { in wifi_display_subelem_hex()
403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen) in wifi_display_subelem_hex()
352 wifi_display_subelem_get(struct wpa_global *global, char *cmd, char *buf, size_t buflen) wifi_display_subelem_get() argument
/third_party/curl/tests/unit/
H A Dunit1655.c144 const size_t buflen = sizeof(buffer); variable
154 DOHcode ret = doh_encode(sunshine1, dnstype, buffer, buflen, &olen1);
161 ret2 = doh_encode(dotshine1, dnstype, buffer, buflen, &olen2);
168 ret2 = doh_encode(sunshine2, dnstype, buffer, buflen, &olen2);
/third_party/NuttX/drivers/usbdev/gadget/
H A Drndis_std.h171 uint32_t buflen; /* InformationBufferLength */ member
180 uint32_t buflen; /* InformationBufferLength */ member
189 uint32_t buflen; /* InformationBufferLength */ member
206 uint32_t buflen; /* StatusBufferLength */ member
/third_party/node/src/
H A Dstring_bytes.h72 // <= buflen. Use StorageSize/Size first to know how much
76 size_t buflen,
83 size_t buflen,
93 size_t buflen,
111 size_t buflen,
/third_party/lwip/src/include/lwip/
H A Dinet.h142 #define inet_ntoa_r(addr, buf, buflen) ip4addr_ntoa_r((const ip4_addr_t*)&(addr), buf, buflen)
160 #define inet6_ntoa_r(addr, buf, buflen) ip6addr_ntoa_r((const ip6_addr_t*)&(addr), buf, buflen)
/third_party/lwip/src/core/
H A Dip.c97 * @param buflen length of buf
101 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen) in ipaddr_ntoa_r() argument
107 return ip6addr_ntoa_r(ip_2_ip6(addr), buf, buflen); in ipaddr_ntoa_r()
109 return ip4addr_ntoa_r(ip_2_ip4(addr), buf, buflen); in ipaddr_ntoa_r()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dconfig.c15 static int newline_terminated(const char *buf, size_t buflen) in newline_terminated() argument
20 if (len == buflen - 1 && buf[buflen - 1] != '\r' && in newline_terminated()
/third_party/libcoap/src/oscore/
H A Doscore_cose.c64 cose_get_curve_name(cose_curve_t id, char *buffer, size_t buflen) { in cose_get_curve_name() argument
67 snprintf(buffer, buflen, "%s (%d)", curve_mapping[i].name, id); in cose_get_curve_name()
71 snprintf(buffer, buflen, "curve Fix me (%d)", id); in cose_get_curve_name()
120 cose_get_alg_name(cose_alg_t id, char *buffer, size_t buflen) { in cose_get_alg_name() argument
123 snprintf(buffer, buflen, "%s (%d)", alg_mapping[i].name, id); in cose_get_alg_name()
127 snprintf(buffer, buflen, "alg Fix me (%d)", id); in cose_get_alg_name()
151 cose_get_hkdf_alg_name(cose_hkdf_alg_t id, char *buffer, size_t buflen) { in cose_get_hkdf_alg_name() argument
154 snprintf(buffer, buflen, "%s (%d)", hkdf_alg_mapping[i].name, id); in cose_get_hkdf_alg_name()
158 snprintf(buffer, buflen, "hkdf_alg Fix me (%d)", id); in cose_get_hkdf_alg_name()
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Da_strex.c138 static int do_buf(unsigned char *buf, int buflen, in do_buf() argument
148 q = buf + buflen; in do_buf()
154 if (buflen & 3) { in do_buf()
160 if (buflen & 1) { in do_buf()
193 i = UTF8_getc(p, buflen, &c); in do_buf()
196 buflen -= i; in do_buf()
235 int buflen) in do_hex_dump()
242 q = buf + buflen; in do_hex_dump()
251 return buflen << 1; in do_hex_dump()
234 do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen) do_hex_dump() argument
/third_party/openssl/crypto/asn1/
H A Da_strex.c139 static int do_buf(unsigned char *buf, int buflen, in do_buf() argument
149 q = buf + buflen; in do_buf()
155 if (buflen & 3) { in do_buf()
161 if (buflen & 1) { in do_buf()
194 i = UTF8_getc(p, buflen, &c); in do_buf()
197 buflen -= i; in do_buf()
236 int buflen) in do_hex_dump()
243 q = buf + buflen; in do_hex_dump()
252 return buflen << 1; in do_hex_dump()
235 do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen) do_hex_dump() argument
/third_party/mbedtls/include/mbedtls/
H A Dbignum.h476 * buffer of length \p buflen Bytes.
477 * \param buflen The available size in Bytes of \p buf.
482 * \note You can call this function with `buflen == 0` to obtain the
493 char *buf, size_t buflen, size_t *olen);
543 * \p buflen Bytes.
544 * \param buflen The length of the input buffer \p buf in Bytes.
551 size_t buflen);
558 * \p buflen Bytes.
559 * \param buflen The length of the input buffer \p buf in Bytes.
566 const unsigned char *buf, size_t buflen);
[all...]
H A Dx509_csr.h88 * \param buflen size of the buffer
93 const unsigned char *buf, size_t buflen);
144 * \param buflen size of the buffer
152 const unsigned char *buf, size_t buflen,
167 * \param buflen size of the buffer
172 int mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen);
/third_party/nghttp2/src/
H A Dinflatehd.cc140 auto buflen = inputlen / 2; in inflate_hd() local
141 auto buf = std::vector<uint8_t>(buflen); in inflate_hd()
150 rv = nghttp2_hd_inflate_hd(inflater, &nv, &inflate_flags, p, buflen, 1); in inflate_hd()
156 buflen -= rv; in inflate_hd()
165 assert(buflen == 0); in inflate_hd()
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_frame.c128 size_t buflen = 0; in nghttp3_nva_copy() local
140 buflen += nva[i].namelen + 1; in nghttp3_nva_copy()
143 buflen += nva[i].valuelen + 1; in nghttp3_nva_copy()
147 buflen += sizeof(nghttp3_nv) * nvlen; in nghttp3_nva_copy()
149 *pnva = nghttp3_mem_malloc(mem, buflen); in nghttp3_nva_copy()
/third_party/libuv/test/
H A Dtest-random.c31 static void random_cb(uv_random_t* req, int status, void* buf, size_t buflen) { in random_cb() argument
40 ASSERT_OK(buflen); in random_cb()
43 ASSERT_EQ(buflen, sizeof(scratch)); in random_cb()

Completed in 15 milliseconds

12345678910>>...33