/external/chromium/net/http/ |
D | http_chunked_decoder.cc | 63 int HttpChunkedDecoder::FilterBuf(char* buf, int buf_len) { in FilterBuf() argument 66 while (buf_len) { in FilterBuf() 68 int num = std::min(chunk_remaining_, buf_len); in FilterBuf() 70 buf_len -= num; in FilterBuf() 81 bytes_after_eof_ += buf_len; in FilterBuf() 85 int bytes_consumed = ScanForChunkRemaining(buf, buf_len); in FilterBuf() 89 buf_len -= bytes_consumed; in FilterBuf() 90 if (buf_len) in FilterBuf() 91 memmove(buf, buf + bytes_consumed, buf_len); in FilterBuf() 97 int HttpChunkedDecoder::ScanForChunkRemaining(const char* buf, int buf_len) { in ScanForChunkRemaining() argument [all …]
|
/external/openssl/crypto/ec/ |
D | ec_print.c | 65 size_t buf_len=0; in EC_POINT_point2bn() local 68 buf_len = EC_POINT_point2oct(group, point, form, in EC_POINT_point2bn() 70 if (buf_len == 0) in EC_POINT_point2bn() 73 if ((buf = OPENSSL_malloc(buf_len)) == NULL) in EC_POINT_point2bn() 76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) in EC_POINT_point2bn() 82 ret = BN_bin2bn(buf, buf_len, ret); in EC_POINT_point2bn() 94 size_t buf_len=0; in EC_POINT_bn2point() local 98 if ((buf_len = BN_num_bytes(bn)) == 0) return NULL; in EC_POINT_bn2point() 99 buf = OPENSSL_malloc(buf_len); in EC_POINT_bn2point() 120 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) in EC_POINT_bn2point() [all …]
|
D | eck_prn.c | 150 size_t buf_len=0, i; in ECPKParameters_print() local 250 buf_len = (size_t)BN_num_bytes(p); in ECPKParameters_print() 251 if (buf_len < (i = (size_t)BN_num_bytes(a))) in ECPKParameters_print() 252 buf_len = i; in ECPKParameters_print() 253 if (buf_len < (i = (size_t)BN_num_bytes(b))) in ECPKParameters_print() 254 buf_len = i; in ECPKParameters_print() 255 if (buf_len < (i = (size_t)BN_num_bytes(gen))) in ECPKParameters_print() 256 buf_len = i; in ECPKParameters_print() 257 if (buf_len < (i = (size_t)BN_num_bytes(order))) in ECPKParameters_print() 258 buf_len = i; in ECPKParameters_print() [all …]
|
/external/openssl/crypto/evp/ |
D | bio_b64.c | 82 int buf_len; member 119 ctx->buf_len=0; in b64_new() 160 ctx->buf_len=0; in b64_read() 167 if (ctx->buf_len > 0) in b64_read() 169 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_read() 170 i=ctx->buf_len-ctx->buf_off; in b64_read() 178 if (ctx->buf_len == ctx->buf_off) in b64_read() 180 ctx->buf_len=0; in b64_read() 330 ctx->buf_len=0; in b64_read() 333 ctx->buf_len=z; in b64_read() [all …]
|
D | bio_ok.c | 147 size_t buf_len; member 184 ctx->buf_len=0; in ok_new() 229 i=ctx->buf_len-ctx->buf_off; in ok_read() 238 if (ctx->buf_len == ctx->buf_off) in ok_read() 245 ctx->buf_len= ctx->buf_len_save- ctx->buf_off_save; in ok_read() 247 ctx->buf_len); in ok_read() 251 ctx->buf_len=0; in ok_read() 261 n=IOBS- ctx->buf_len; in ok_read() 262 i=BIO_read(b->next_bio,&(ctx->buf[ctx->buf_len]),n); in ok_read() 266 ctx->buf_len+= i; in ok_read() [all …]
|
D | bio_enc.c | 78 int buf_len; member 116 ctx->buf_len=0; in enc_new() 154 if (ctx->buf_len > 0) in enc_read() 156 i=ctx->buf_len-ctx->buf_off; in enc_read() 163 if (ctx->buf_len == ctx->buf_off) in enc_read() 165 ctx->buf_len=0; in enc_read() 189 &(ctx->buf_len)); in enc_read() 202 (unsigned char *)ctx->buf,&ctx->buf_len, in enc_read() 211 if(ctx->buf_len == 0) continue; in enc_read() 214 if (ctx->buf_len <= outl) in enc_read() [all …]
|
/external/chromium/net/disk_cache/ |
D | mem_entry_impl.cc | 170 int buf_len, net::CompletionCallback* completion_callback) { in ReadData() argument 175 new ReadWriteDataParameters(index, offset, buf_len, false))); in ReadData() 178 int result = InternalReadData(index, offset, buf, buf_len); in ReadData() 189 int buf_len, net::CompletionCallback* completion_callback, bool truncate) { in WriteData() argument 194 new ReadWriteDataParameters(index, offset, buf_len, truncate))); in WriteData() 197 int result = InternalWriteData(index, offset, buf, buf_len, truncate); in WriteData() 207 int MemEntryImpl::ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, in ReadSparseData() argument 213 new SparseOperationParameters(offset, buf_len))); in ReadSparseData() 215 int result = InternalReadSparseData(offset, buf, buf_len); in ReadSparseData() 221 int MemEntryImpl::WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, in WriteSparseData() argument [all …]
|
D | entry_impl.cc | 312 int buf_len, CompletionCallback* callback) { in ReadDataImpl() argument 317 new ReadWriteDataParameters(index, offset, buf_len, false))); in ReadDataImpl() 320 int result = InternalReadData(index, offset, buf, buf_len, callback); in ReadDataImpl() 331 int buf_len, CompletionCallback* callback, in WriteDataImpl() argument 337 new ReadWriteDataParameters(index, offset, buf_len, truncate))); in WriteDataImpl() 340 int result = InternalWriteData(index, offset, buf, buf_len, callback, in WriteDataImpl() 351 int EntryImpl::ReadSparseDataImpl(int64 offset, net::IOBuffer* buf, int buf_len, in ReadSparseDataImpl() argument 359 result = sparse_->StartIO(SparseControl::kReadOperation, offset, buf, buf_len, in ReadSparseDataImpl() 366 int buf_len, CompletionCallback* callback) { in WriteSparseDataImpl() argument 374 buf_len, callback); in WriteSparseDataImpl() [all …]
|
D | entry_impl.h | 38 int ReadDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len, 40 int WriteDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len, 42 int ReadSparseDataImpl(int64 offset, net::IOBuffer* buf, int buf_len, 44 int WriteSparseDataImpl(int64 offset, net::IOBuffer* buf, int buf_len, 145 virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, 147 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, 150 virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 152 virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 171 int buf_len, CompletionCallback* callback); 172 int InternalWriteData(int index, int offset, net::IOBuffer* buf, int buf_len, [all …]
|
D | mem_entry_impl.h | 101 virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, 103 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, 106 virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 108 virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 127 int InternalReadData(int index, int offset, net::IOBuffer* buf, int buf_len); 128 int InternalWriteData(int index, int offset, net::IOBuffer* buf, int buf_len, 130 int InternalReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len); 131 int InternalWriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len); 137 void PrepareTarget(int index, int offset, int buf_len);
|
D | in_flight_backend_io.cc | 128 net::IOBuffer* buf, int buf_len) { in ReadData() argument 134 buf_len_ = buf_len; in ReadData() 138 net::IOBuffer* buf, int buf_len, bool truncate) { in WriteData() argument 144 buf_len_ = buf_len; in WriteData() 149 net::IOBuffer* buf, int buf_len) { in ReadSparseData() argument 154 buf_len_ = buf_len; in ReadSparseData() 158 net::IOBuffer* buf, int buf_len) { in WriteSparseData() argument 163 buf_len_ = buf_len; in WriteSparseData() 386 net::IOBuffer* buf, int buf_len, in ReadData() argument 389 operation->ReadData(entry, index, offset, buf, buf_len); in ReadData() [all …]
|
/external/wpa_supplicant_8/src/crypto/ |
D | aes-eax.c | 33 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() 97 size_t buf_len; in aes_128_eax_decrypt() local 103 buf_len = nonce_len; in aes_128_eax_decrypt() 105 buf_len = data_len; in aes_128_eax_decrypt() [all …]
|
D | sha1-tprf.c | 30 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()
|
/external/chromium/net/base/ |
D | file_stream_posix.cc | 61 int ReadFile(base::PlatformFile file, char* buf, int buf_len) { in ReadFile() argument 66 ssize_t res = HANDLE_EINTR(read(file, buf, static_cast<size_t>(buf_len))); in ReadFile() 74 int buf_len, in ReadFileTask() argument 76 callback->Run(ReadFile(file, buf, buf_len)); in ReadFileTask() 82 int WriteFile(base::PlatformFile file, const char* buf, int buf_len) { in WriteFile() argument 84 ssize_t res = HANDLE_EINTR(write(file, buf, buf_len)); in WriteFile() 92 int buf_len, in WriteFileTask() argument 94 callback->Run(WriteFile(file, buf, buf_len)); in WriteFileTask() 140 base::PlatformFile file, char* buf, int buf_len, 143 base::PlatformFile file, const char* buf, int buf_len, [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
D | eap_fast_pac.c | 192 size_t buf_len; member 201 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line() 212 if (len >= rc->buf_len) in eap_fast_read_line() 213 len = rc->buf_len - 1; in eap_fast_read_line() 219 rc->buf[rc->buf_len - 1] = '\0'; in eap_fast_read_line() 265 rc->buf_len = 2048; in eap_fast_init_pac_data() 266 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 491 if (*pos - *buf + need > *buf_len) { in eap_fast_write() 492 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write() [all …]
|
/external/chromium/net/udp/ |
D | udp_socket_libevent.cc | 126 int buf_len, in Read() argument 128 return RecvFrom(buf, buf_len, NULL, callback); in Read() 132 int buf_len, in RecvFrom() argument 140 DCHECK_GT(buf_len, 0); in RecvFrom() 142 int nread = InternalRecvFrom(buf, buf_len, address); in RecvFrom() 154 read_buf_len_ = buf_len; in RecvFrom() 161 int buf_len, in Write() argument 163 return SendToOrWrite(buf, buf_len, NULL, callback); in Write() 167 int buf_len, in SendTo() argument 170 return SendToOrWrite(buf, buf_len, &address, callback); in SendTo() [all …]
|
D | udp_socket_win.cc | 122 int buf_len, in Read() argument 124 return RecvFrom(buf, buf_len, NULL, callback); in Read() 128 int buf_len, in RecvFrom() argument 136 DCHECK_GT(buf_len, 0); in RecvFrom() 138 int nread = InternalRecvFrom(buf, buf_len, address); in RecvFrom() 149 int buf_len, in Write() argument 151 return SendToOrWrite(buf, buf_len, NULL, callback); in Write() 155 int buf_len, in SendTo() argument 158 return SendToOrWrite(buf, buf_len, &address, callback); in SendTo() 162 int buf_len, in SendToOrWrite() argument [all …]
|
D | udp_socket_libevent.h | 54 int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 59 int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 75 int buf_len, 89 int buf_len, 149 int buf_len, 153 int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); 154 int InternalSendTo(IOBuffer* buf, int buf_len, const IPEndPoint* address);
|
D | udp_socket_win.h | 56 int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 61 int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 77 int buf_len, 91 int buf_len, 137 int buf_len, 141 int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); 142 int InternalSendTo(IOBuffer* buf, int buf_len, const IPEndPoint* address);
|
D | udp_server_socket.cc | 22 int buf_len, in RecvFrom() argument 25 return socket_.RecvFrom(buf, buf_len, address, callback); in RecvFrom() 29 int buf_len, in SendTo() argument 32 return socket_.SendTo(buf, buf_len, address, callback); in SendTo()
|
D | udp_client_socket.cc | 25 int buf_len, in Read() argument 27 return socket_.Read(buf, buf_len, callback); in Read() 31 int buf_len, in Write() argument 33 return socket_.Write(buf, buf_len, callback); in Write()
|
/external/openssl/crypto/pkcs7/ |
D | bio_ber.c | 104 int buf_len; member 174 n=ctx->buf_len-j; in bio_ber_get_header() 180 ctx->buf_len-j; in bio_ber_get_header() 185 i=BER_BUF_SIZE-ctx->buf_len; in bio_ber_get_header() 188 i=BIO_read(bio->next_bio,&(ctx->buf[ctx->buf_len]),i); in bio_ber_get_header() 195 ctx->buf_len+=i; in bio_ber_get_header() 198 max=ctx->buf_len; in bio_ber_get_header() 204 if ((ctx->buf_len < BER_BUF_SIZE) && in bio_ber_get_header() 282 n=ctx->buf_len-ctx->buf_off; in ber_write() 303 (unsigned char *)ctx->buf,&ctx->buf_len, in ber_write() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_fast_pac.c | 186 size_t buf_len; member 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line() 206 if (len >= rc->buf_len) in eap_fast_read_line() 207 len = rc->buf_len - 1; in eap_fast_read_line() 213 rc->buf[rc->buf_len - 1] = '\0'; in eap_fast_read_line() 259 rc->buf_len = 2048; in eap_fast_init_pac_data() 260 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data() 471 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, in eap_fast_write() argument 487 if (*pos - *buf + need > *buf_len) { in eap_fast_write() 488 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
D | aes_wrap.c | 350 size_t buf_len; in aes_128_eax_encrypt() local 355 buf_len = nonce_len; in aes_128_eax_encrypt() 357 buf_len = data_len; in aes_128_eax_encrypt() 358 if (hdr_len > buf_len) in aes_128_eax_encrypt() 359 buf_len = hdr_len; in aes_128_eax_encrypt() 360 buf_len += 16; in aes_128_eax_encrypt() 362 buf = os_malloc(buf_len); in aes_128_eax_encrypt() 413 size_t buf_len; in aes_128_eax_decrypt() local 418 buf_len = nonce_len; in aes_128_eax_decrypt() 420 buf_len = data_len; in aes_128_eax_decrypt() [all …]
|
/external/openssl/apps/ |
D | ecparam.c | 479 size_t buf_len = 0, tmp_len = 0; in MAIN() local 525 if ((tmp_len = (size_t)BN_num_bytes(ec_p)) > buf_len) in MAIN() 526 buf_len = tmp_len; in MAIN() 527 if ((tmp_len = (size_t)BN_num_bytes(ec_a)) > buf_len) in MAIN() 528 buf_len = tmp_len; in MAIN() 529 if ((tmp_len = (size_t)BN_num_bytes(ec_b)) > buf_len) in MAIN() 530 buf_len = tmp_len; in MAIN() 531 if ((tmp_len = (size_t)BN_num_bytes(ec_gen)) > buf_len) in MAIN() 532 buf_len = tmp_len; in MAIN() 533 if ((tmp_len = (size_t)BN_num_bytes(ec_order)) > buf_len) in MAIN() [all …]
|