Searched refs:len (Results 976 - 1000 of 6514) sorted by relevance

<<31323334353637383940>>

/freebsd-11.0-release/crypto/heimdal/lib/asn1/
H A Dder_length.c103 der_length_len (size_t len) argument
105 if (len < 128)
111 len /= 256;
112 } while (len);
120 size_t len = 0; local
126 len++;
128 return len + 1;
H A Dmain.c103 size_t len = 0, i; local
153 len = 1;
158 arg = realloc(arg, (len + 2) * sizeof(arg[0]));
163 arg[len] = strdup(buf);
164 if (arg[len] == NULL) {
168 arg[len + 1] = NULL;
169 len++;
174 if(getarg(args, num_args, len, arg, &optidx))
177 if (len != optidx) {
201 for (i = 1; i < len;
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/krb5/
H A Dmk_rep.c46 size_t len = 0; local
94 ASN1_MALLOC_ENCODE(EncAPRepPart, buf, buf_size, &body, &len, ret);
98 if (buf_size != len)
109 buf + buf_size - len,
110 len,
117 ASN1_MALLOC_ENCODE(AP_REP, outbuf->data, outbuf->length, &ap, &len, ret);
118 if (ret == 0 && outbuf->length != len)
H A Dmk_safe.c47 size_t len = 0; local
102 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, &s, &len, ret);
105 if(buf_size != len)
117 len,
126 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, &s, &len, ret);
130 if(buf_size != len)
133 outbuf->length = len;
/freebsd-11.0-release/contrib/wpa/src/crypto/
H A Daes-omac1.c35 * @len: Lengths of the data blocks
44 const u8 *addr[], const size_t *len, u8 *mac)
58 total_len += len[e];
63 end = pos + len[0];
78 end = pos + len[e];
102 end = pos + len[e];
122 * @len: Lengths of the data blocks
131 const u8 *addr[], const size_t *len, u8 *mac)
133 return omac1_aes_vector(key, 16, num_elem, addr, len, mac);
43 omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
130 omac1_aes_128_vector(const u8 *key, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
/freebsd-11.0-release/contrib/wpa/src/utils/
H A Dbase64.c20 * @len: Length of the data to be encoded
29 unsigned char * base64_encode(const unsigned char *src, size_t len, argument
37 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */
40 if (olen < len)
46 end = src + len;
92 * @len: Length of the data to be decoded
99 unsigned char * base64_decode(const unsigned char *src, size_t len, argument
112 for (i = 0; i < len; i++) {
126 for (i = 0; i < len; i++) {
H A Dedit.c179 size_t len, count = 0; local
205 len = os_strlen(str);
206 h = os_zalloc(sizeof(*h) + len);
210 os_strlcpy(h->str, str, len + 1);
376 static int filter_strings(char **c, char *str, size_t len) argument
381 if (os_strncasecmp(c[j], str, len) == 0) {
399 int len = 0; local
400 while (a[len] && a[len] == b[len])
408 int len, i; local
429 int i, len, count; local
870 size_t len = os_strlen(search_buf); local
939 size_t len; local
959 size_t len; local
[all...]
H A Dwpabuf.h30 struct wpabuf * wpabuf_alloc(size_t len);
31 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len);
32 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
139 size_t len)
142 os_memcpy(wpabuf_put(buf, len), data, len); local
151 static inline void wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
155 buf->size = buf->used = len;
138 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/freebsd-11.0-release/contrib/tcsh/
H A Dtw.help.c121 full.len = 0;
125 ep = full.len;
127 full.len = ep;
137 ssize_t len; local
148 while ((len = xread(f, buf, sizeof(buf))) > 0)
149 (void) xwrite(SHOUT, buf, len);
153 if (len == -1)
/freebsd-11.0-release/contrib/libxo/libxo/
H A Dxo_humanize.h63 xo_humanize_number (char *buf, size_t len, int64_t bytes, argument
112 if (len > 0)
132 if (len < baselen + 1)
137 for (max = 100, i = len - baselen; i-- > 0;)
152 if (len < baselen + 1 + 2)
157 r = snprintf(buf, len, "%s%d%s%d%s%s%s",
162 r = snprintf(buf, len, "%s%lld%s%s%s",
/freebsd-11.0-release/contrib/gdb/gdb/
H A Dxmodem.c98 docrc (unsigned char *p, int len) argument
102 while (len-- > 0)
163 xmodem_send_packet (struct serial *desc, unsigned char *packet, int len, int hashmark) argument
177 if (len <= XMODEM_DATASIZE)
182 else if (len <= XMODEM_1KDATASIZE)
192 memset (packet + 3 + len, '\026', datasize - len);
/freebsd-11.0-release/sys/dev/le/
H A Dif_le_lebuffer.c151 le_lebuffer_copytodesc(struct lance_softc *sc, void *fromv, int off, int len) argument
156 for (; len >= 8; len -= 8, off += 8, from += 8)
158 for (; len >= 4; len -= 4, off += 4, from += 4)
160 for (; len >= 2; len -= 2, off += 2, from += 2)
162 if (len == 1)
167 le_lebuffer_copyfromdesc(struct lance_softc *sc, void *tov, int off, int len) argument
172 for (; len >
186 le_lebuffer_copytobuf(struct lance_softc *sc, void *fromv, int off, int len) argument
198 le_lebuffer_copyfrombuf(struct lance_softc *sc, void *tov, int off, int len) argument
211 le_lebuffer_zerobuf(struct lance_softc *sc, int off, int len) argument
[all...]
/freebsd-11.0-release/sys/dev/ed/
H A Dif_ed_hpp.c509 * Only used in the probe routine to test the memory. 'len' must
513 ed_hpp_writemem(struct ed_softc *sc, uint8_t *src, uint16_t dst, uint16_t len) argument
524 u_short *const fence = s + (len >> 1);
545 ed_asic_outsw(sc, ED_HPP_PAGE_4, src, len / 2);
560 int len, wantbyte; local
590 total_len += (len = m->m_len);
591 if (len) {
597 data++; len--; wantbyte = 0;
600 if ((len > 3) && (use_32bit_accesses)) {
604 uint32_t *fence = sl + (len >>
[all...]
/freebsd-11.0-release/sys/netinet/
H A Din_cksum.c49 in_cksum(struct mbuf *m, int len) argument
65 for (;m && len; m = m->m_next) {
82 len--;
85 if (len < mlen)
86 mlen = len;
87 len -= mlen;
135 if (len)
/freebsd-11.0-release/lib/libc/xdr/
H A Dxdr_stdio.c129 xdrstdio_getbytes(XDR *xdrs, char *addr, u_int len) argument
132 if ((len != 0) && (fread(addr, (size_t)len, 1, (FILE *)xdrs->x_private) != 1))
138 xdrstdio_putbytes(XDR *xdrs, const char *addr, u_int len) argument
141 if ((len != 0) && (fwrite(addr, (size_t)len, 1,
164 xdrstdio_inline(XDR *xdrs, u_int len) argument
/freebsd-11.0-release/lib/libmd/
H A DmdXhl.c51 MDXFileChunk(const char *filename, char *buf, off_t ofs, off_t len) argument
59 if (len < 0) {
76 remain = len;
78 while (len == 0 || remain > 0) {
79 if (len == 0 || remain > sizeof(buffer))
98 MDXData (const void *data, unsigned int len, char *buf) argument
103 MDXUpdate(&ctx,data,len);
/freebsd-11.0-release/sys/contrib/libfdt/
H A Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) argument
82 if (((offset + len) < offset)
83 || ((offset + len) > fdt_size_dt_struct(fdt)))
88 if (p + len < p)
203 int len = strlen(s) + 1; local
204 const char *last = strtab + tabsize - len;
208 if (memcmp(p, s, len) == 0)
/freebsd-11.0-release/crypto/openssl/crypto/asn1/
H A Da_strex.c87 static int send_mem_chars(void *arg, const void *buf, int len)
92 memcpy(*out, buf, len);
93 *out += len;
98 static int send_bio_chars(void *arg, const void *buf, int len) argument
102 if (BIO_write(arg, buf, len) != len)
107 static int send_fp_chars(void *arg, const void *buf, int len) argument
111 if (fwrite(buf, 1, len, arg) != (unsigned int)len)
116 typedef int char_io (void *arg, const void *buf, int len);
197 int i, outlen, len; local
355 int outlen, len; local
455 int outlen, len; local
[all...]
/freebsd-11.0-release/crypto/openssl/crypto/evp/
H A Devp_key.c92 int EVP_read_pw_string(char *buf, int len, const char *prompt, int verify) argument
94 return EVP_read_pw_string_min(buf, 0, len, prompt, verify);
97 int EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt, argument
110 (len >= BUFSIZ) ? BUFSIZ - 1 : len);
113 buff, min, (len >= BUFSIZ) ? BUFSIZ - 1 : len,
/freebsd-11.0-release/usr.bin/grep/regex/
H A Dfastmatch.h13 size_t len; member in struct:__anon13767
63 tre_fixncomp(fastmatch_t *preg, const char *regex, size_t len, int cflags);
66 tre_fastncomp(fastmatch_t *preg, const char *regex, size_t len, int cflags);
69 tre_fastnexec(const fastmatch_t *preg, const char *string, size_t len,
73 tre_fixwncomp(fastmatch_t *preg, const wchar_t *regex, size_t len, int cflags);
76 tre_fastwncomp(fastmatch_t *preg, const wchar_t *regex, size_t len, int cflags);
79 tre_fastwnexec(const fastmatch_t *preg, const wchar_t *string, size_t len,
/freebsd-11.0-release/sys/crypto/aesni/
H A Daesni.h81 size_t len, const uint8_t *from, uint8_t *to,
84 size_t len, uint8_t *buf, const uint8_t iv[static AES_BLOCK_LEN]);
86 size_t len, const uint8_t *from, uint8_t *to);
88 size_t len, const uint8_t *from, uint8_t *to);
90 size_t len, const uint8_t *from, uint8_t *to,
94 const void *tweak_schedule /*__aligned(16)*/, size_t len,
97 const void *tweak_schedule /*__aligned(16)*/, size_t len,
/freebsd-11.0-release/usr.sbin/bluetooth/sdpd/
H A Dlan.c118 int32_t len; local
120 len = snprintf(net, sizeof(net), "%s/%d",
124 if (len < 0 || buf + 2 + len > eob)
128 SDP_PUT8(len, buf);
129 memcpy(buf, net, len);
131 return (2 + len);
/freebsd-11.0-release/crypto/openssl/crypto/mdc2/
H A Dmdc2dgst.c78 static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len);
88 int MDC2_Update(MDC2_CTX *c, const unsigned char *in, size_t len) argument
94 if (len < MDC2_BLOCK - i) {
96 memcpy(&(c->data[i]), in, len);
97 c->num += (int)len;
103 len -= j;
109 i = len & ~((size_t)MDC2_BLOCK - 1);
112 j = len - i;
120 static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len) argument
129 for (i = 0; i < len;
[all...]
/freebsd-11.0-release/crypto/openssl/crypto/
H A Dppccap.c60 void sha256_block_p8(void *ctx, const void *inp, size_t len);
61 void sha256_block_ppc(void *ctx, const void *inp, size_t len);
62 void sha256_block_data_order(void *ctx, const void *inp, size_t len) argument
64 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha256_block_p8(ctx, inp, len) :
65 sha256_block_ppc(ctx, inp, len);
68 void sha512_block_p8(void *ctx, const void *inp, size_t len);
69 void sha512_block_ppc(void *ctx, const void *inp, size_t len);
70 void sha512_block_data_order(void *ctx, const void *inp, size_t len) argument
72 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha512_block_p8(ctx, inp, len) :
73 sha512_block_ppc(ctx, inp, len);
[all...]
/freebsd-11.0-release/crypto/openssl/ssl/
H A Dt1_reneg.c116 int ssl_add_clienthello_renegotiate_ext(SSL *s, unsigned char *p, int *len, argument
138 *len = s->s3->previous_client_finished_len + 1;
146 int ssl_parse_clienthello_renegotiate_ext(SSL *s, unsigned char *d, int len, argument
152 if (len < 1) {
162 if ((ilen + 1) != len) {
195 int ssl_add_serverhello_renegotiate_ext(SSL *s, unsigned char *p, int *len, argument
223 *len = s->s3->previous_client_finished_len
232 int ssl_parse_serverhello_renegotiate_ext(SSL *s, unsigned char *d, int len, argument
244 if (len < 1) {
254 if (ilen + 1 != len) {
[all...]

Completed in 415 milliseconds

<<31323334353637383940>>