Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 48) sorted by relevance

12

/external/wpa_supplicant_6/wpa_supplicant/src/utils/
Dbase64.c40 size_t olen; in base64_encode() local
43 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_encode()
44 olen += olen / 72; /* line feeds */ in base64_encode()
45 olen++; /* nul termination */ in base64_encode()
46 if (olen < len) in base64_encode()
48 out = os_malloc(olen); in base64_encode()
107 size_t i, count, olen; in base64_decode() local
123 olen = count / 4 * 3; in base64_decode()
124 pos = out = os_malloc(olen); in base64_decode()
/external/wpa_supplicant/
Dbase64.c40 size_t olen; in base64_encode() local
43 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_encode()
44 olen += olen / 72; /* line feeds */ in base64_encode()
45 olen++; /* nul termination */ in base64_encode()
46 out = os_malloc(olen); in base64_encode()
105 size_t i, count, olen; in base64_decode() local
121 olen = count / 4 * 3; in base64_decode()
122 pos = out = os_malloc(olen); in base64_decode()
/external/openssl/crypto/comp/
Dc_rle.c8 unsigned int olen, unsigned char *in, unsigned int ilen);
10 unsigned int olen, unsigned char *in, unsigned int ilen);
29 unsigned int olen, unsigned char *in, unsigned int ilen) in rle_compress_block() argument
33 if (olen < (ilen+1)) in rle_compress_block()
45 unsigned int olen, unsigned char *in, unsigned int ilen) in rle_expand_block() argument
49 if (olen < (ilen-1)) in rle_expand_block()
Dc_zlib.c30 unsigned int olen, unsigned char *in, unsigned int ilen);
32 unsigned int olen, unsigned char *in, unsigned int ilen);
54 unsigned int olen, unsigned char *in, unsigned int ilen);
56 unsigned int olen, unsigned char *in, unsigned int ilen);
192 unsigned int olen, unsigned char *in, unsigned int ilen) in zlib_stateful_compress_block() argument
205 state->ostream.avail_out = olen; in zlib_stateful_compress_block()
212 ilen,olen - state->ostream.avail_out, in zlib_stateful_compress_block()
213 (ilen != olen - state->ostream.avail_out)?"zlib":"clear"); in zlib_stateful_compress_block()
215 return olen - state->ostream.avail_out; in zlib_stateful_compress_block()
219 unsigned int olen, unsigned char *in, unsigned int ilen) in zlib_stateful_expand_block() argument
[all …]
Dcomp.h20 unsigned char *out, unsigned int olen,
23 unsigned char *out, unsigned int olen,
44 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
46 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
Dcomp_lib.c37 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_compress_block() argument
46 ret=ctx->meth->compress(ctx,out,olen,in,ilen); in COMP_compress_block()
55 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_expand_block() argument
65 ret=ctx->meth->expand(ctx,out,olen,in,ilen); in COMP_expand_block()
/external/ppp/pppd/
Dcbcp.c233 int code, opt, id, len, olen, delay; local
259 GETCHAR(olen, p);
261 if (olen < 2 || olen > len) {
266 len -= olen;
273 if (olen > 2) {
278 if (olen > 3) {
283 memcpy(str, p, olen - 4);
284 str[olen - 4] = 0;
Dipxcp.c1479 int code, id, len, olen; local
1507 GETCHAR(olen, p);
1509 if (olen < CILEN_VOID || olen > len) {
1513 len -= olen;
1514 optend = p + olen;
1517 if (olen == CILEN_NETN) {
1524 if (olen == CILEN_NODEN) {
1534 if (olen == CILEN_COMPRESS) {
1541 if (olen == CILEN_PROTOCOL) {
1548 if (olen >= CILEN_NAME) {
[all …]
Dlcp.c1977 int code, id, len, olen, i; local
2005 GETCHAR(olen, p);
2007 if (olen < 2 || olen > len) {
2011 len -= olen;
2012 optend = p + olen;
2015 if (olen == CILEN_SHORT) {
2022 if (olen == CILEN_LONG) {
2029 if (olen >= CILEN_SHORT) {
2068 if (olen >= CILEN_SHORT) {
2082 if (olen >= CILEN_CHAR) {
[all …]
Dipv6cp.c1440 int code, id, len, olen; local
1468 GETCHAR(olen, p);
1470 if (olen < 2 || olen > len) {
1474 len -= olen;
1475 optend = p + olen;
1478 if (olen >= CILEN_COMPRESS) {
1486 if (olen == CILEN_IFACEID) {
/external/openssl/include/openssl/
Dcomp.h20 unsigned char *out, unsigned int olen,
23 unsigned char *out, unsigned int olen,
44 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
46 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
/external/tcpdump/
Dprint-pim.c649 u_int16_t otype, olen; in pimv2_print() local
654 olen = EXTRACT_16BITS(&bp[2]); in pimv2_print()
655 TCHECK2(bp[0], 4 + olen); in pimv2_print()
660 olen); in pimv2_print()
669 if (olen != 4) { in pimv2_print()
670 (void)printf("ERROR: Option Lenght != 4 Bytes (%u)", olen); in pimv2_print()
685 switch (olen) { in pimv2_print()
693 printf("ERROR: Option Lenght != 4 Bytes (%u)", olen); in pimv2_print()
720 while (ptr < (bp+olen)) { in pimv2_print()
735 print_unknown_data(bp,"\n\t ",olen); in pimv2_print()
[all …]
Dprint-fr.c721 int olen; in q933_print() local
753 olen = length; /* preserve the original length for non verbose mode */ in q933_print()
770 printf(", length %u",olen); in q933_print()
801 printf(", length %u",olen); in q933_print()
/external/speex/libspeex/
Dresample.c667 spx_uint32_t olen = old_length; in update_filter() local
673 olen = old_length + 2*st->magic_samples[i]; in update_filter()
680 if (st->filt_len > olen) in update_filter()
684 for (j=0;j<olen-1;j++) in update_filter()
685 … st->mem[i*st->mem_alloc_size+(st->filt_len-2-j)] = st->mem[i*st->mem_alloc_size+(olen-2-j)]; in update_filter()
690 st->last_sample[i] += (st->filt_len - olen)/2; in update_filter()
693 st->magic_samples[i] = (olen - st->filt_len)/2; in update_filter()
846 spx_uint32_t olen = *out_len; in speex_resampler_process_int() local
853 olen -= speex_resampler_magic(st, channel_index, &out, olen); in speex_resampler_process_int()
855 while (ilen && olen) { in speex_resampler_process_int()
[all …]
/external/qemu/
Dqemu-sockets-android.c42 int inet_listen(const char *str, char *ostr, int olen, in inet_listen() argument
167 snprintf(ostr, olen, "[%s]:%d%s", uaddr, in inet_listen()
170 snprintf(ostr, olen, "%s:%d%s", uaddr, in inet_listen()
265 int unix_listen(const char *str, char *ostr, int olen) in unix_listen() argument
296 snprintf(ostr, olen, "%s%s", path, opts ? opts : ""); in unix_listen()
345 int unix_listen(const char *path, char *ostr, int olen) in unix_listen() argument
Dqemu-sockets.c91 int inet_listen(const char *str, char *ostr, int olen, in inet_listen() argument
216 snprintf(ostr, olen, "[%s]:%d%s", uaddr, in inet_listen()
219 snprintf(ostr, olen, "%s:%d%s", uaddr, in inet_listen()
319 int unix_listen(const char *str, char *ostr, int olen) in unix_listen() argument
356 snprintf(ostr, olen, "%s%s", un.sun_path, opts ? opts : ""); in unix_listen()
405 int unix_listen(const char *path, char *ostr, int olen) in unix_listen() argument
Dqemu_socket.h10 int inet_listen(const char *str, char *ostr, int olen,
14 int unix_listen(const char *path, char *ostr, int olen);
/external/bluetooth/bluez/compat/
Dpand.c193 socklen_t olen = sizeof(err); in w4_hup() local
195 getsockopt(sk, SOL_SOCKET, SO_ERROR, &err, &olen); in w4_hup()
218 socklen_t olen; in do_listen() local
245 olen = sizeof(l2o); in do_listen()
246 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &l2o, &olen) < 0) { in do_listen()
337 socklen_t olen; in create_connection() local
352 olen = sizeof(l2o); in create_connection()
353 getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &l2o, &olen); in create_connection()
/external/bluetooth/bluez/src/
Dmain.c235 register int sp, np, olen; in expand_name() local
288 olen = strlen(opt); in expand_name()
289 if (np + olen < size - 1) in expand_name()
290 memcpy(dst + np, opt, olen); in expand_name()
291 np += olen; in expand_name()
/external/openssl/ssl/
Dt1_enc.c158 unsigned char *out, int olen) in tls1_P_hash() argument
212 if (olen > chunk) in tls1_P_hash()
217 olen-=j; in tls1_P_hash()
225 memcpy(out,A1,olen); in tls1_P_hash()
246 unsigned char *out2, int olen) in tls1_PRF() argument
261 memset(out1,0,olen); in tls1_PRF()
271 out2,olen)) in tls1_PRF()
274 for (i=0; i<olen; i++) in tls1_PRF()
/external/qemu/slirp/
Dip_input.c709 int olen;
711 olen = (ip->ip_hl<<2) - sizeof (struct ip);
713 i = m->m_len - (sizeof (struct ip) + olen);
714 memcpy(opts, opts + olen, (unsigned)i);
715 m->m_len -= olen;
/external/qemu/slirp-android/
Dip_input.c709 int olen;
711 olen = (ip->ip_hl<<2) - sizeof (struct ip);
713 i = m->m_len - (sizeof (struct ip) + olen);
714 memcpy(opts, opts + olen, (unsigned)i);
715 m->m_len -= olen;
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dtlsv1_server.c237 size_t olen; in tlsv1_server_decrypt() local
253 olen = out_end - out_pos; in tlsv1_server_decrypt()
255 out_pos, &olen, &alert); in tlsv1_server_decrypt()
262 out_pos += olen; in tlsv1_server_decrypt()
Dtlsv1_client.c263 size_t olen; in tlsv1_client_decrypt() local
279 olen = out_end - out_pos; in tlsv1_client_decrypt()
281 out_pos, &olen, &alert); in tlsv1_client_decrypt()
288 out_pos += olen; in tlsv1_client_decrypt()
/external/openssl/crypto/asn1/
Dn_pkey.c126 int rsalen, pkeylen, olen; in i2d_RSA_NET() local
163 olen = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, NULL); in i2d_RSA_NET()
166 return olen; in i2d_RSA_NET()

12