Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/third_party/openssl/crypto/ec/
Dec_print.c19 size_t buf_len = 0; in EC_POINT_point2bn() local
22 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2bn()
24 if (buf_len == 0) in EC_POINT_point2bn()
27 ret = BN_bin2bn(buf, buf_len, ret); in EC_POINT_point2bn()
37 size_t buf_len = 0; in EC_POINT_bn2point() local
41 if ((buf_len = BN_num_bytes(bn)) == 0) in EC_POINT_bn2point()
42 buf_len = 1; in EC_POINT_bn2point()
43 if ((buf = OPENSSL_malloc(buf_len)) == NULL) { in EC_POINT_bn2point()
48 if (!BN_bn2binpad(bn, buf, buf_len)) { in EC_POINT_bn2point()
61 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) { in EC_POINT_bn2point()
[all …]
/third_party/openssl/crypto/evp/
Dbio_b64.c34 int buf_len; member
129 ctx->buf_len = 0; in b64_read()
136 if (ctx->buf_len > 0) { in b64_read()
137 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_read()
138 i = ctx->buf_len - ctx->buf_off; in b64_read()
147 if (ctx->buf_len == ctx->buf_off) { in b64_read()
148 ctx->buf_len = 0; in b64_read()
282 ctx->buf_len = 0; in b64_read()
284 ctx->buf_len = z; in b64_read()
289 (unsigned char *)ctx->buf, &ctx->buf_len, in b64_read()
[all …]
Dbio_ok.c98 size_t buf_len; member
190 i = ctx->buf_len - ctx->buf_off; in ok_read()
200 if (ctx->buf_len == ctx->buf_off) { in ok_read()
207 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; in ok_read()
209 ctx->buf_len); in ok_read()
211 ctx->buf_len = 0; in ok_read()
222 n = IOBS - ctx->buf_len; in ok_read()
223 i = BIO_read(next, &(ctx->buf[ctx->buf_len]), n); in ok_read()
228 ctx->buf_len += i; in ok_read()
278 n = ctx->buf_len - ctx->buf_off; in ok_write()
[all …]
Dbio_enc.c28 int buf_len; member
121 if (ctx->buf_len > 0) { in enc_read()
122 i = ctx->buf_len - ctx->buf_off; in enc_read()
130 if (ctx->buf_len == ctx->buf_off) { in enc_read()
131 ctx->buf_len = 0; in enc_read()
163 ctx->buf, &(ctx->buf_len)); in enc_read()
177 int j = outl - blocksize, buf_len; in enc_read() local
180 (unsigned char *)out, &buf_len, in enc_read()
185 ret += buf_len; in enc_read()
186 out += buf_len; in enc_read()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/pnm/
Dgstpnmutils.c24 guint buf_len) in gst_pnm_info_mngr_scan() argument
29 g_return_val_if_fail (buf || !buf_len, GST_PNM_INFO_MNGR_RESULT_FAILED); in gst_pnm_info_mngr_scan()
31 if (!buf_len) in gst_pnm_info_mngr_scan()
38 for (i = 0; (i < buf_len) && (buf[i] != '\n'); i++); in gst_pnm_info_mngr_scan()
39 if (i == buf_len) in gst_pnm_info_mngr_scan()
43 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
45 for (i = 0; (i < buf_len) && ((buf[i] == ' ') || (buf[i] == '\t') in gst_pnm_info_mngr_scan()
47 if (i == buf_len) in gst_pnm_info_mngr_scan()
51 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
57 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Daes-eax.c33 size_t buf_len; in aes_128_eax_encrypt() local
39 buf_len = nonce_len; in aes_128_eax_encrypt()
41 buf_len = data_len; in aes_128_eax_encrypt()
42 if (hdr_len > buf_len) in aes_128_eax_encrypt()
43 buf_len = hdr_len; in aes_128_eax_encrypt()
44 buf_len += 16; in aes_128_eax_encrypt()
46 buf = os_malloc(buf_len); in aes_128_eax_encrypt()
74 bin_clear_free(buf, buf_len); in aes_128_eax_encrypt()
97 size_t buf_len; in aes_128_eax_decrypt() local
103 buf_len = nonce_len; in aes_128_eax_decrypt()
[all …]
Dsha1-tprf.c30 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) in sha1_t_prf() argument
51 output_len[0] = (buf_len >> 8) & 0xff; in sha1_t_prf()
52 output_len[1] = buf_len & 0xff; in sha1_t_prf()
54 while (pos < buf_len) { in sha1_t_prf()
56 plen = buf_len - pos; in sha1_t_prf()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Daes-eax.c33 size_t buf_len; in aes_128_eax_encrypt() local
39 buf_len = nonce_len; in aes_128_eax_encrypt()
41 buf_len = data_len; in aes_128_eax_encrypt()
42 if (hdr_len > buf_len) in aes_128_eax_encrypt()
43 buf_len = hdr_len; in aes_128_eax_encrypt()
44 buf_len += 16; in aes_128_eax_encrypt()
46 buf = os_malloc(buf_len); in aes_128_eax_encrypt()
74 bin_clear_free(buf, buf_len); in aes_128_eax_encrypt()
97 size_t buf_len; in aes_128_eax_decrypt() local
103 buf_len = nonce_len; in aes_128_eax_decrypt()
[all …]
Dsha1-tprf.c30 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) in sha1_t_prf() argument
51 output_len[0] = (buf_len >> 8) & 0xff; in sha1_t_prf()
52 output_len[1] = buf_len & 0xff; in sha1_t_prf()
54 while (pos < buf_len) { in sha1_t_prf()
56 plen = buf_len - pos; in sha1_t_prf()
/third_party/ltp/testcases/kernel/sched/nptl/
Dnptl01.c72 void call_mutex_init(pthread_mutex_t * mutex, char *buf, size_t buf_len) in call_mutex_init() argument
78 strerror_r(ret, buf, buf_len)); in call_mutex_init()
82 void call_mutex_lock(pthread_mutex_t * mutex, char *buf, size_t buf_len) in call_mutex_lock() argument
88 strerror_r(ret, buf, buf_len)); in call_mutex_lock()
92 void call_mutex_unlock(pthread_mutex_t * mutex, char *buf, size_t buf_len) in call_mutex_unlock() argument
98 strerror_r(ret, buf, buf_len)); in call_mutex_unlock()
102 void call_cond_init(pthread_cond_t * cond, char *buf, size_t buf_len) in call_cond_init() argument
108 strerror_r(ret, buf, buf_len)); in call_cond_init()
113 char *buf, size_t buf_len) in call_cond_wait() argument
119 strerror_r(ret, buf, buf_len)); in call_cond_wait()
[all …]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lecp/
Dmain.c1029 size_t buf_len; member
2055 { .reason = LECPCB_VAL_BLOB_END, .buf = bm12, .buf_len = sizeof(bm12)},
2066 { .reason = LECPCB_VAL_BLOB_END, .buf = bm12, .buf_len = sizeof(bm12)},
2241 { .reason = LECPCB_VAL_STR_END, .buf = bm48, .buf_len = sizeof(bm48)},
2260 { .reason = LECPCB_VAL_BLOB_END, .buf = bm51, .buf_len = sizeof(bm51)},
2267 { .reason = LECPCB_VAL_BLOB_END, .buf = bm52, .buf_len = sizeof(bm52)},
2274 { .reason = LECPCB_VAL_STR_END, .buf = bm53, .buf_len = sizeof(bm53)},
2280 { .reason = LECPCB_VAL_BLOB_END, .buf = bm53, .buf_len = 0},
2285 { .reason = LECPCB_VAL_BLOB_END, .buf = bm51, .buf_len = sizeof(bm51)},
2290 { .reason = LECPCB_VAL_STR_END, .buf = bm53, .buf_len = 0},
[all …]
/third_party/mbedtls/library/
Dplatform.c286 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_read() argument
294 if( ( n = fread( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_read()
297 mbedtls_platform_zeroize( buf, buf_len ); in mbedtls_platform_std_nv_seed_read()
305 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_write() argument
313 if( ( n = fwrite( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_write()
329 static int platform_nv_seed_read_uninit( unsigned char *buf, size_t buf_len ) in platform_nv_seed_read_uninit() argument
332 ((void) buf_len); in platform_nv_seed_read_uninit()
343 static int platform_nv_seed_write_uninit( unsigned char *buf, size_t buf_len ) in platform_nv_seed_write_uninit() argument
346 ((void) buf_len); in platform_nv_seed_write_uninit()
353 int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len ) =
[all …]
Dssl_tls13_generic.c41 size_t *buf_len ) in mbedtls_ssl_tls13_fetch_handshake_msg() argument
69 *buf_len = ssl->in_hslen - 4; in mbedtls_ssl_tls13_fetch_handshake_msg()
79 size_t *buf_len ) in mbedtls_ssl_tls13_start_handshake_msg() argument
89 *buf_len = MBEDTLS_SSL_OUT_CONTENT_LEN - 4; in mbedtls_ssl_tls13_start_handshake_msg()
98 size_t buf_len, in mbedtls_ssl_tls13_finish_handshake_msg() argument
103 ((void) buf_len); in mbedtls_ssl_tls13_finish_handshake_msg()
488 size_t buf_len; in mbedtls_ssl_tls13_process_certificate_verify() local
494 MBEDTLS_SSL_HS_CERTIFICATE_VERIFY, &buf, &buf_len ) ); in mbedtls_ssl_tls13_process_certificate_verify()
525 buf + buf_len, verify_buffer, verify_buffer_len ) ); in mbedtls_ssl_tls13_process_certificate_verify()
528 MBEDTLS_SSL_HS_CERTIFICATE_VERIFY, buf, buf_len ); in mbedtls_ssl_tls13_process_certificate_verify()
[all …]
/third_party/ltp/lib/
Dget_path.c53 int tst_get_path(const char *prog_name, char *buf, size_t buf_len) in tst_get_path() argument
67 snprintf(buf, MIN(buf_len, (size_t) (end - start + 1)), in tst_get_path()
70 snprintf(buf, buf_len, "%s", start); in tst_get_path()
79 snprintf(buf, buf_len, "."); in tst_get_path()
88 snprintf(buf + size, buf_len - size, "/%s", in tst_get_path()
92 snprintf(buf + size, buf_len - size, "%s", in tst_get_path()
95 if (buf_len - size > ret && file_exist(buf)) in tst_get_path()
/third_party/python/Lib/asyncio/
Dprotocols.py208 buf_len = len(buf)
209 if not buf_len:
212 if buf_len >= data_len:
217 buf[:buf_len] = data[:buf_len]
218 proto.buffer_updated(buf_len)
219 data = data[buf_len:]
/third_party/libunwind/src/mi/
DGget_proc_name.c31 unw_word_t addr, char *buf, size_t buf_len, void *arg) in intern_string() argument
36 for (i = 0; i < buf_len; ++i) in intern_string()
44 buf[buf_len - 1] = '\0'; /* ensure string is NUL terminated */ in intern_string()
50 char *buf, size_t buf_len, unw_word_t *offp, void *arg) in get_proc_name() argument
69 ret = intern_string (as, a, di->u.pi.name_ptr, buf, buf_len, arg); in get_proc_name()
93 return (*a->get_proc_name) (as, ip, buf, buf_len, offp, arg); in get_proc_name()
99 unw_get_proc_name (unw_cursor_t *cursor, char *buf, size_t buf_len, in unw_get_proc_name() argument
119 error = get_proc_name (tdep_get_as (c), ip, buf, buf_len, offp, in unw_get_proc_name()
/third_party/lwip/src/netif/ppp/
Dmagic.c162 void magic_random_bytes(unsigned char *buf, u32_t buf_len) { in magic_random_bytes() argument
167 while (buf_len > 0) { in magic_random_bytes()
175 n = LWIP_MIN(buf_len, MD5_HASH_SIZE); in magic_random_bytes()
178 buf_len -= n; in magic_random_bytes()
274 void magic_random_bytes(unsigned char *buf, u32_t buf_len) { in magic_random_bytes() argument
277 while (buf_len > 0) { in magic_random_bytes()
279 n = LWIP_MIN(buf_len, sizeof(new_rand)); in magic_random_bytes()
282 buf_len -= n; in magic_random_bytes()
/third_party/selinux/libselinux/src/
Dlabel_support.c145 char *from_addr, size_t buf_len, in digest_add_specfile() argument
154 if (digest->hashbuf_size + buf_len < digest->hashbuf_size) { in digest_add_specfile()
158 digest->hashbuf_size += buf_len; in digest_add_specfile()
168 if (fread(digest->hashbuf + (digest->hashbuf_size - buf_len), in digest_add_specfile()
169 1, buf_len, fp) != buf_len) in digest_add_specfile()
175 (digest->hashbuf_size - buf_len), in digest_add_specfile()
176 from_addr, buf_len); in digest_add_specfile()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_fast_pac.c185 size_t buf_len; member
194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line()
205 if (len >= rc->buf_len) in eap_fast_read_line()
206 len = rc->buf_len - 1; in eap_fast_read_line()
212 rc->buf[rc->buf_len - 1] = '\0'; in eap_fast_read_line()
258 rc->buf_len = 2048; in eap_fast_init_pac_data()
259 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data()
477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, in eap_fast_write() argument
493 if (*pos - *buf + need > *buf_len) { in eap_fast_write()
494 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write()
[all …]
Deap_teap_pac.c185 size_t buf_len; member
194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_teap_read_line()
206 if (len >= rc->buf_len) in eap_teap_read_line()
207 len = rc->buf_len - 1; in eap_teap_read_line()
213 rc->buf[rc->buf_len - 1] = '\0'; in eap_teap_read_line()
259 rc->buf_len = 2048; in eap_teap_init_pac_data()
260 rc->buf = os_malloc(rc->buf_len); in eap_teap_init_pac_data()
478 static void eap_teap_write(char **buf, char **pos, size_t *buf_len, in eap_teap_write() argument
493 if (*pos - *buf + need > *buf_len) { in eap_teap_write()
494 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_teap_write()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_teap_pac.c185 size_t buf_len; member
194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_teap_read_line()
206 if (len >= rc->buf_len) in eap_teap_read_line()
207 len = rc->buf_len - 1; in eap_teap_read_line()
213 rc->buf[rc->buf_len - 1] = '\0'; in eap_teap_read_line()
259 rc->buf_len = 2048; in eap_teap_init_pac_data()
260 rc->buf = os_malloc(rc->buf_len); in eap_teap_init_pac_data()
478 static void eap_teap_write(char **buf, char **pos, size_t *buf_len, in eap_teap_write() argument
493 if (*pos - *buf + need > *buf_len) { in eap_teap_write()
494 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_teap_write()
[all …]
Deap_fast_pac.c185 size_t buf_len; member
194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line()
205 if (len >= rc->buf_len) in eap_fast_read_line()
206 len = rc->buf_len - 1; in eap_fast_read_line()
212 rc->buf[rc->buf_len - 1] = '\0'; in eap_fast_read_line()
258 rc->buf_len = 2048; in eap_fast_init_pac_data()
259 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data()
477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, in eap_fast_write() argument
493 if (*pos - *buf + need > *buf_len) { in eap_fast_write()
494 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write()
[all …]
/third_party/openssl/apps/
Decparam.c277 size_t buf_len = 0, tmp_len = 0; in ecparam_main() local
317 if ((tmp_len = (size_t)BN_num_bytes(ec_p)) > buf_len) in ecparam_main()
318 buf_len = tmp_len; in ecparam_main()
319 if ((tmp_len = (size_t)BN_num_bytes(ec_a)) > buf_len) in ecparam_main()
320 buf_len = tmp_len; in ecparam_main()
321 if ((tmp_len = (size_t)BN_num_bytes(ec_b)) > buf_len) in ecparam_main()
322 buf_len = tmp_len; in ecparam_main()
323 if ((tmp_len = (size_t)BN_num_bytes(ec_gen)) > buf_len) in ecparam_main()
324 buf_len = tmp_len; in ecparam_main()
325 if ((tmp_len = (size_t)BN_num_bytes(ec_order)) > buf_len) in ecparam_main()
[all …]
/third_party/lwip/src/core/distributed_net/
Ddistributed_net_core.c95 ssize_t distributed_net_sendto(int sock, const void *buf, size_t buf_len, int flags, const struct s… in distributed_net_sendto() argument
100 CHECK_PARA(buf_len > 0, EINVAL); in distributed_net_sendto()
109 return lwip_sendto_internal(sock, buf, buf_len, flags, addr, addr_len); in distributed_net_sendto()
124 return lwip_sendto_internal(sock, buf, buf_len, flags, addr, addr_len); in distributed_net_sendto()
132 ssize_t ret = udp_transmit_sendto(sock, buf, buf_len, &addr_in); in distributed_net_sendto()
182 ssize_t distributed_net_recvfrom(int sock, void *buf, size_t buf_len, int flags, struct sockaddr *f… in distributed_net_recvfrom() argument
187 CHECK_PARA(buf_len > 0, EINVAL); in distributed_net_recvfrom()
196 return lwip_recvfrom_internal(sock, buf, buf_len, flags, from, from_len); in distributed_net_recvfrom()
199 size_t new_buf_len = buf_len + sizeof(udp_data); in distributed_net_recvfrom()
216 (void)memcpy_s(buf, buf_len, new_buf, ret); in distributed_net_recvfrom()
[all …]
/third_party/libunwind/src/coredump/
D_UCD_get_proc_name.c34 char *buf, size_t buf_len, unw_word_t *offp) in elf_w()
56 ret = elf_w (get_proc_name_in_image) (as, &ui->edi.ei, segbase, mapoff, ip, buf, buf_len, offp); in elf_w()
63 char *buf, size_t buf_len, unw_word_t *offp, void *arg) in _UCD_get_proc_name() argument
68 return _Uelf64_CD_get_proc_name (ui, as, ip, buf, buf_len, offp); in _UCD_get_proc_name()
70 return _Uelf32_CD_get_proc_name (ui, as, ip, buf, buf_len, offp); in _UCD_get_proc_name()

12345678910>>...13