Searched refs:len (Results 1 - 25 of 5713) sorted by relevance

1234567891011>>

/external/clang/test/Lexer/
H A Ddigraph.c9 void copy(char d<::>, const char s<::>, int len)
11 while (len-- >= 0)
13 d<:len:> = s<:len:>; variable
/external/clang/test/CodeGen/
H A D2004-05-07-VarArrays.c3 int foo(int len, char arr[][len], int X) { argument
H A Doffsetof.c9 int test(int len) { argument
10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]);
/external/dropbear/libtomcrypt/
H A Dparsenames.pl9 $len = length($b);
12 $len = $len + length($obj);
14 if ($len > 100) {
16 $len = length($obj);
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/
H A DSimpleDERReader.java28 public SimpleDERReader(byte[] b, int off, int len) argument
30 resetInput(b, off, len);
38 public void resetInput(byte[] b, int off, int len) argument
42 count = len;
53 private byte[] readBytes(int len) throws IOException argument
55 if (len > count)
58 byte[] b = new byte[len];
60 System.arraycopy(buffer, pos, b, 0, len);
62 pos += len;
63 count -= len;
[all...]
/external/dropbear/libtomcrypt/src/misc/
H A Dburn_stack.c20 @param len amount of stack to burn in bytes
22 void burn_stack(unsigned long len) argument
26 if (len > (unsigned long)sizeof(buf))
27 burn_stack(len - sizeof(buf));
/external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/
H A Dder_length_utf8_string.c46 unsigned long x, len; local
51 len = 0;
56 len += der_utf8_charsize(in[x]);
59 if (len < 128) {
61 *outlen = 2 + len;
62 } else if (len < 256) {
64 *outlen = 3 + len;
65 } else if (len < 65536UL) {
67 *outlen = 4 + len;
68 } else if (len < 1677721
[all...]
/external/wpa_supplicant_6/wpa_supplicant/src/wps/
H A Dwps_attr_parse.c22 const u8 *pos, u16 len)
26 if (len != 1) {
28 len);
34 if (len != 1) {
36 "length %u", len);
42 if (len != WPS_NONCE_LEN) {
44 "length %u", len);
50 if (len != WPS_NONCE_LEN) {
52 "length %u", len);
58 if (len !
21 wps_set_attr(struct wps_parse_attr *attr, u16 type, const u8 *pos, u16 len) argument
405 u16 type, len; local
[all...]
/external/dropbear/libtomcrypt/src/pk/asn1/der/short_integer/
H A Dder_length_short_integer.c28 unsigned long z, y, len; local
49 len = 1;
52 ++len;
55 len += z;
58 len += (num&(1UL<<((z<<3) - 1))) ? 1 : 0;
61 *outlen = len;
/external/apache-http/src/org/apache/http/util/
H A DByteArrayBuffer.java46 private int len; field in class:ByteArrayBuffer
58 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len);
62 public void append(final byte[] b, int off, int len) { argument
66 if ((off < 0) || (off > b.length) || (len < 0) ||
67 ((off + len) < 0) || ((off + len) > b.length)) {
70 if (len == 0) {
73 int newlen = this.len + len;
77 System.arraycopy(b, off, this.buffer, this.len, le
90 append(final char[] b, int off, int len) argument
112 append(final CharArrayBuffer b, int off, int len) argument
147 setLength(int len) argument
[all...]
H A DCharArrayBuffer.java48 private int len; field in class:CharArrayBuffer
60 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len);
64 public void append(final char[] b, int off, int len) { argument
68 if ((off < 0) || (off > b.length) || (len < 0) ||
69 ((off + len) < 0) || ((off + len) > b.length)) {
72 if (len == 0) {
75 int newlen = this.len + len;
79 System.arraycopy(b, off, this.buffer, this.len, le
96 append(final CharArrayBuffer b, int off, int len) argument
119 append(final byte[] b, int off, int len) argument
145 append(final ByteArrayBuffer b, int off, int len) argument
191 setLength(int len) argument
[all...]
/external/v8/test/mjsunit/
H A Dstring-indexof-2.js55 for(var len = 1; i + len < lipsum.length; len += 7) {
56 var substring = lipsum.substring(i, i + len);
61 "Lipsum substring " + i + ".." + (i + len-1) + " not found");
62 assertEquals(lipsum.substring(index, index + len), substring,
63 "Wrong lipsum substring found: " + i + ".." + (i + len - 1) + "/" +
64 index + ".." + (index + len - 1));
66 assertEquals(i, index, "Lipsum match at " + i + ".." + (i + len - 1));
/external/dropbear/libtomcrypt/src/modes/cbc/
H A Dcbc_getiv.c23 @param len [in/out] The max size and resulting size of the initial vector
27 int cbc_getiv(unsigned char *IV, unsigned long *len, symmetric_CBC *cbc) argument
30 LTC_ARGCHK(len != NULL);
32 if ((unsigned long)cbc->blocklen > *len) {
33 *len = cbc->blocklen;
37 *len = cbc->blocklen;
/external/dropbear/libtomcrypt/src/modes/cfb/
H A Dcfb_getiv.c23 @param len [in/out] The max size and resulting size of the initial vector
27 int cfb_getiv(unsigned char *IV, unsigned long *len, symmetric_CFB *cfb) argument
30 LTC_ARGCHK(len != NULL);
32 if ((unsigned long)cfb->blocklen > *len) {
33 *len = cfb->blocklen;
37 *len = cfb->blocklen;
/external/dropbear/libtomcrypt/src/modes/ctr/
H A Dctr_getiv.c23 @param len [in/out] The max size and resulting size of the initial vector
27 int ctr_getiv(unsigned char *IV, unsigned long *len, symmetric_CTR *ctr) argument
30 LTC_ARGCHK(len != NULL);
32 if ((unsigned long)ctr->blocklen > *len) {
33 *len = ctr->blocklen;
37 *len = ctr->blocklen;
/external/dropbear/libtomcrypt/src/modes/f8/
H A Df8_getiv.c23 @param len [in/out] The max size and resulting size of the initial vector
27 int f8_getiv(unsigned char *IV, unsigned long *len, symmetric_F8 *f8) argument
30 LTC_ARGCHK(len != NULL);
32 if ((unsigned long)f8->blocklen > *len) {
33 *len = f8->blocklen;
37 *len = f8->blocklen;
/external/dropbear/libtomcrypt/src/modes/lrw/
H A Dlrw_getiv.c23 @param len Length ... must be at least 16 :-)
27 int lrw_getiv(unsigned char *IV, unsigned long *len, symmetric_LRW *lrw) argument
30 LTC_ARGCHK(len != NULL);
32 if (*len < 16) {
33 *len = 16;
38 *len = 16;
/external/dropbear/libtomcrypt/src/modes/ofb/
H A Dofb_getiv.c23 @param len [in/out] The max size and resulting size of the initial vector
27 int ofb_getiv(unsigned char *IV, unsigned long *len, symmetric_OFB *ofb) argument
30 LTC_ARGCHK(len != NULL);
32 if ((unsigned long)ofb->blocklen > *len) {
33 *len = ofb->blocklen;
37 *len = ofb->blocklen;
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
H A Dchap.c26 size_t len[3]; local
29 len[0] = 1;
31 len[1] = secret_len;
33 len[2] = challenge_len;
34 md5_vector(3, addr, len, response);
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Dchap.c19 size_t len[3]; local
22 len[0] = 1;
24 len[1] = secret_len;
26 len[2] = challenge_len;
27 return md5_vector(3, addr, len, response);
/external/wpa_supplicant_8/src/eap_common/
H A Dchap.c19 size_t len[3]; local
22 len[0] = 1;
24 len[1] = secret_len;
26 len[2] = challenge_len;
27 return md5_vector(3, addr, len, response);
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Dchap.c19 size_t len[3]; local
22 len[0] = 1;
24 len[1] = secret_len;
26 len[2] = challenge_len;
27 return md5_vector(3, addr, len, response);
/external/bluetooth/bluedroid/bta/ag/
H A Dbta_ag_ci.c43 void bta_ag_ci_rx_write(UINT16 handle, char *p_data, UINT16 len) argument
46 UINT16 len_remaining = len;
49 if (len > (RFCOMM_DATA_POOL_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1))
50 len = RFCOMM_DATA_POOL_BUF_SIZE - sizeof(tBTA_AG_CI_RX_WRITE) - 1;
54 if (len_remaining < len)
55 len = len_remaining;
57 if ((p_buf = (tBTA_AG_CI_RX_WRITE *) GKI_getbuf((UINT16)(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1))) != NULL)
63 strncpy(p_data_area, p_data, len);
64 p_data_area[len] = 0;
68 APPL_TRACE_ERROR1("ERROR: Unable to allocate buffer to hold AT response code. len
[all...]
/external/dropbear/libtomcrypt/src/math/
H A Drand_prime.c20 int rand_prime(void *N, long len, prng_state *prng, int wprng) argument
28 if (len < 0) {
30 len = -len;
36 if (len < 2 || len > 512) {
46 buf = XCALLOC(1, len);
53 if (prng_descriptor[wprng].read(buf, len, prng) != (unsigned long)len) {
60 buf[len
[all...]
/external/elfutils/libasm/
H A Ddisasm_str.c38 size_t len; member in struct:buffer
43 buffer_cb (char *str, size_t len, void *arg) argument
47 if (len > buffer->len)
49 return len - buffer->len;
51 buffer->buf = mempcpy (buffer->buf, str, len);
52 buffer->len = len;
60 GElf_Addr addr, const char *fmt, char **bufp, size_t len,
59 disasm_str(DisasmCtx_t *ctx, const uint8_t **startp, const uint8_t *end, GElf_Addr addr, const char *fmt, char **bufp, size_t len, void *symcbarg) argument
[all...]

Completed in 456 milliseconds

1234567891011>>