HomeSort by relevance Sort by last modified time
    Searched refs:len (Results 26 - 50 of 4801) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/wpa_supplicant/
base64.h 18 unsigned char * base64_encode(const unsigned char *src, size_t len,
20 unsigned char * base64_decode(const unsigned char *src, size_t len,
  /external/wpa_supplicant_6/wpa_supplicant/src/utils/
base64.h 18 unsigned char * base64_encode(const unsigned char *src, size_t len,
20 unsigned char * base64_decode(const unsigned char *src, size_t len,
  /external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/
der_encode_utf8_string.c 32 unsigned long x, y, len; local
39 for (x = len = 0; x < inlen; x++) {
43 len += der_utf8_charsize(in[x]);
46 if (len < 128) {
47 y = 2 + len;
48 } else if (len < 256) {
49 y = 3 + len;
50 } else if (len < 65536UL) {
51 y = 4 + len;
52 } else if (len < 16777216UL)
    [all...]
  /external/dropbear/libtomcrypt/demos/
multi.c 7 unsigned long len, len2; local
15 len = sizeof(buf[0]);
16 hash_memory(find_hash("sha256"), (unsigned char*)"hello", 5, buf[0], &len); local
19 if (len != len2 || memcmp(buf[0], buf[1], len)) {
20 printf("Failed: %d %lu %lu\n", __LINE__, len, len2);
25 if (len != len2 || memcmp(buf[0], buf[1], len)) {
26 printf("Failed: %d %lu %lu\n", __LINE__, len, len2);
31 if (len != len2 || memcmp(buf[0], buf[1], len))
38 hmac_memory(find_hash("sha256"), key, 16, (unsigned char*)"hello", 5, buf[0], &len); local
60 omac_memory(find_cipher("aes"), key, 16, (unsigned char*)"hello", 5, buf[0], &len); local
82 pmac_memory(find_cipher("aes"), key, 16, (unsigned char*)"hello", 5, buf[0], &len); local
    [all...]
  /bionic/libc/bionic/
dirname_r.c 37 int result, len; local
42 len = 1;
58 len = 1;
66 len = endp - path +1;
69 result = len;
70 if (len+1 > MAXPATHLEN) {
77 if (len > (int)bufflen-1) {
78 len = (int)bufflen-1;
83 if (len >= 0) {
84 memcpy( buffer, path, len );
    [all...]
basename_r.c 37 int len, result; local
43 len = 1;
55 len = 1;
64 len = endp - startp +1;
67 result = len;
71 if (len > (int)bufflen-1) {
72 len = (int)bufflen-1;
77 if (len >= 0) {
78 memcpy( buffer, startp, len );
79 buffer[len] = 0
    [all...]
  /external/dropbear/
svr-service.c 33 static void send_msg_service_accept(unsigned char *name, int len);
40 unsigned int len; local
44 name = buf_getstring(ses.payload, &len);
47 if (len == SSH_SERVICE_USERAUTH_LEN &&
48 strncmp(SSH_SERVICE_USERAUTH, name, len) == 0) {
50 send_msg_service_accept(name, len);
57 if (len == SSH_SERVICE_CONNECTION_LEN &&
58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) {
63 send_msg_service_accept(name, len);
76 static void send_msg_service_accept(unsigned char *name, int len) {
    [all...]
buffer.c 59 buf->len = 0;
79 /* resize a buffer, pos and len will be repositioned if required when
89 buf->len = MIN(newsize, buf->len);
100 ret = buf_new(buf->len);
101 ret->len = buf->len;
102 memcpy(ret->data, buf->data, buf->len);
107 void buf_setlen(buffer* buf, unsigned int len) {
108 if (len > buf->size)
208 unsigned int len; local
261 memcpy(buf_getwriteptr(buf, len), bytes, len); local
270 unsigned int len, pad = 0; local
315 unsigned int len; local
    [all...]
  /external/expat/tests/
chardata.c 26 int len = 0; local
28 while (s[len] != 0)
29 ++len;
30 return len;
45 int len; local
48 len = strlen(s);
51 if ((len + storage->count) > maxchars) {
52 len = (maxchars - storage->count);
54 if (len + storage->count < sizeof(storage->data)) {
55 memcpy(storage->data + storage->count, s, len);
86 int len; local
115 int len = xmlstrlen(expected); local
    [all...]
  /bionic/libc/string/
strndup.c 34 int len = slen < n ? slen : n; local
35 char* copy = malloc(len+1);
38 memcpy( copy, s, len );
39 copy[len] = 0;
strxfrm.c 41 size_t len = strlen(s2) + 1; local
43 if (len < n)
44 n = len;
46 return len;
  /external/openssl/crypto/asn1/
a_print.c 63 int ASN1_PRINTABLE_type(const unsigned char *s, int len)
69 if (len <= 0) len= -1;
72 while ((*s) && (len-- != 0))
  /external/tcpdump/missing/
strdup.c 49 size_t len; local
52 len = strlen(str) + 1;
53 if ((copy = malloc(len)) == NULL)
55 memcpy(copy, str, len);
  /external/openssl/crypto/buffer/
buffer.c 92 int BUF_MEM_grow(BUF_MEM *str, int len)
97 if (str->length >= len)
99 str->length=len;
100 return(len);
102 if (str->max >= len)
104 memset(&str->data[str->length],0,len-str->length);
105 str->length=len;
106 return(len);
108 n=(len+3)/3*4;
116 len=0
    [all...]
  /external/tcpdump/
print-msdp.c 41 unsigned int type, len; local
46 len = EXTRACT_16BITS(sp + 1);
47 if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX)
53 len = EXTRACT_16BITS(sp + 1);
54 if (len > 1400 || vflag)
55 printf(" [len %u]", len);
56 if (len < 3)
69 if ((u_int)((*sp * 12) + 8) < len) {
    [all...]
  /external/dropbear/libtomcrypt/src/pk/asn1/der/ia5/
der_decode_ia5_string.c 32 unsigned long x, y, len; local
59 len = 0;
62 len = (len << 8) | in[x++];
65 len = in[x++] & 0x7F;
69 if (len > *outlen) {
70 *outlen = len;
74 if (len + x > inlen) {
79 for (y = 0; y < len; y++) {
  /external/dropbear/libtomcrypt/src/pk/asn1/der/octet/
der_decode_octet_string.c 32 unsigned long x, y, len; local
58 len = 0;
61 len = (len << 8) | in[x++];
64 len = in[x++] & 0x7F;
68 if (len > *outlen) {
69 *outlen = len;
73 if (len + x > inlen) {
78 for (y = 0; y < len; y++) {
  /external/dropbear/libtomcrypt/src/pk/asn1/der/printable_string/
der_decode_printable_string.c 32 unsigned long x, y, len; local
59 len = 0;
62 len = (len << 8) | in[x++];
65 len = in[x++] & 0x7F;
69 if (len > *outlen) {
70 *outlen = len;
74 if (len + x > inlen) {
79 for (y = 0; y < len; y++) {
  /external/iproute2/include/
rt_names.h 6 char* rtnl_rtprot_n2a(int id, char *buf, int len);
7 char* rtnl_rtscope_n2a(int id, char *buf, int len);
8 char* rtnl_rttable_n2a(__u32 id, char *buf, int len);
9 char* rtnl_rtrealm_n2a(int id, char *buf, int len);
10 char* rtnl_dsfield_n2a(int id, char *buf, int len);
17 const char *inet_proto_n2a(int proto, char *buf, int len);
21 const char * ll_type_n2a(int type, char *buf, int len);
24 int ll_addr_a2n(char *lladdr, int len, char *arg);
26 const char * ll_proto_n2a(unsigned short id, char *buf, int len);
  /external/elfutils/libasm/
asm_addstrz.c 26 /* Add zero terminated string STR of size LEN to (sub)section ASMSCN. */
28 asm_addstrz (asmscn, str, len)
31 size_t len;
38 if (len == 0)
50 for (cnt = 0; cnt < len; ++cnt)
59 if (len == 0)
60 len = strlen (str) + 1;
91 while (--len > 0 && (len > 1 || *str != '\0'));
99 if (__libasm_ensure_section_space (asmscn, len) != 0
    [all...]
asm_fill.c 27 asm_fill (asmscn, bytes, len)
30 size_t len;
46 + len);
50 pattern->len = len;
51 memcpy (pattern->bytes, bytes, len);
  /external/bison/lib/
basename.c 73 size_t len; local
75 for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--)
78 return len;
  /external/e2fsprogs/
wordwrap.pl 20 $len = length($word) + 1;
21 $linelen += $len;
24 $linelen = 1+$len;
  /external/elfutils/libebl/
eblobjecttypename.c 24 ebl_object_type_name (ebl, object, buf, len)
28 size_t len;
32 res = ebl != NULL ? ebl->object_type_name (object, buf, len) : NULL;
37 snprintf (buf, len, "LOOS+%x", object - ET_LOOS);
40 snprintf (buf, len, "LOPROC+%x", object - ET_LOPROC);
42 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), object);
  /external/bluetooth/bluez/compat/
lib.h 46 /* Read exactly len bytes (Signal safe)*/
47 static inline int read_n(int fd, char *buf, int len)
51 while (!__io_canceled && len > 0) {
52 if ((w = read(fd, buf, len)) < 0) {
59 len -= w;
67 /* Write exactly len bytes (Signal safe)*/
68 static inline int write_n(int fd, char *buf, int len)
72 while (!__io_canceled && len > 0) {
73 if ((w = write(fd, buf, len)) < 0) {
80 len -= w
    [all...]

Completed in 488 milliseconds

12 3 4 5 6 7 8 91011>>