Searched refs:len (Results 1001 - 1025 of 6514) sorted by relevance

<<41424344454647484950>>

/freebsd-11.0-release/crypto/openssh/
H A Dcipher-aes.c72 LIBCRYPTO_EVP_INL_TYPE len)
77 int i, j, blocks = len / RIJNDAEL_BLOCKSIZE;
79 if (len == 0)
81 if (len % RIJNDAEL_BLOCKSIZE)
82 fatal("ssh_rijndael_cbc: bad len %d", len);
100 cnow = (u_char *) (src+len-RIJNDAEL_BLOCKSIZE);
101 plain = dest+len-RIJNDAEL_BLOCKSIZE;
130 ssh_rijndael_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, u_int len) argument
137 memcpy(c->r_iv, iv, len);
71 ssh_rijndael_cbc(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, LIBCRYPTO_EVP_INL_TYPE len) argument
[all...]
/freebsd-11.0-release/contrib/netbsd-tests/lib/libcurses/director/
H A Dtestlang_conf.l56 dequote(const char *s, size_t *len)
61 *len = 0;
71 ++(*len);
75 buf = malloc(*len + 1);
326 size_t len;
328 if ((yylval.string = dequote(yytext, &len)) == NULL)
335 size_t len;
336 if ((yylval.string = dequote(yytext, &len)) == NULL)
343 size_t len;
349 if ((yylval.retval->return_value = dequote(p, &len))
[all...]
/freebsd-11.0-release/contrib/netbsd-tests/lib/libpthread/
H A Dh_resolv.c76 size_t len; local
81 while ((line = fgetln(fp, &len)) != NULL) {
82 char c = line[len];
84 line[len] = '\0';
87 line[len] = c;
101 int error, len; local
103 len = snprintf(buf, sizeof(buf), "%p: %d resolving %s %d\n",
105 (void)write(STDOUT_FILENO, buf, len);
109 len = snprintf(buf, sizeof(buf), "%p: host %s %s\n",
111 (void)write(STDOUT_FILENO, buf, len);
[all...]
/freebsd-11.0-release/contrib/less/
H A Dos.c63 iread(fd, buf, len)
66 unsigned int len;
130 n = read(fd, buf, len);
231 int len; local
240 len = (int) (strlen(filename) + strlen(p) + 3);
241 m = (char *) ecalloc(len, sizeof(char));
242 SNPRINTF2(m, len, "%s: %s", filename, p);
316 memcpy(dst, src, len)
319 int len;
325 for (i = 0; i < len;
[all...]
/freebsd-11.0-release/contrib/amd/amd/
H A Dinfo_file.c69 int len = strlen(buf); local
70 done += len;
71 if (len > 1 && buf[len - 2] == '\\' &&
72 buf[len - 1] == '\n') {
74 buf += len - 2;
75 size -= len - 2;
113 int len = strlen(key_val); local
119 if (key_val[len - 1] != '\n') {
123 key_val[len
[all...]
/freebsd-11.0-release/contrib/bmake/
H A Dstr.c146 int len; local
155 if ((len = strlen(str) + 1) > curlen)
156 *buffer = bmake_malloc(curlen = len);
159 * initial argmax based on len
161 argmax = MAX((len / 5), 50);
429 * len Number of characters to substitute
433 * of characters matched is returned in len.
441 Str_SYSVMatch(const char *word, const char *pattern, int *len) argument
449 *len = strlen(w);
463 *len
498 Str_SYSVSubst(Buffer *buf, char *pat, char *src, int len) argument
[all...]
/freebsd-11.0-release/contrib/ipfilter/lib/
H A Dvar.c91 int len; local
119 len = strlen(newstring) + strlen(p2);
123 len += strlen(p3);
125 p1 = malloc(len + 1);
135 s = p1 + len - strlen(p3) - 1;
151 int len; local
163 len = strlen(value);
165 if ((*value == '"' && value[len - 1] == '"') ||
166 (*value == '\'' && value[len - 1] == '\'')) {
167 value[len
[all...]
/freebsd-11.0-release/bin/ls/
H A Dutil.c149 len_octal(const char *s, int len) argument
157 while (len != 0 && (clen = mbrtowc(&wc, s, len, &mbs)) != 0) {
161 len--;
166 r += 4 * len;
187 int goodchar, i, len, prtlen; local
192 len = 0;
198 len += wcwidth(wc);
207 len += 2;
221 len
[all...]
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_buf.c49 dt_buf_create(dtrace_hdl_t *dtp, dt_buf_t *bp, const char *name, size_t len) argument
51 if (len == 0)
52 len = _dtrace_bufsize;
54 bp->dbu_buf = bp->dbu_ptr = dt_zalloc(dtp, len);
55 bp->dbu_len = len;
86 const void *buf, size_t len, size_t align)
96 if (bp->dbu_ptr + adj + len > bp->dbu_buf + bp->dbu_len) {
101 while (bp->dbu_ptr + adj + len > bp->dbu_buf + new_len) {
121 bcopy(buf, bp->dbu_ptr, len);
122 bp->dbu_ptr += len;
85 dt_buf_write(dtrace_hdl_t *dtp, dt_buf_t *bp, const void *buf, size_t len, size_t align) argument
[all...]
/freebsd-11.0-release/sys/dev/cxgb/common/
H A Djhash.h43 u32 a, b, c, len; local
46 len = length;
50 while (len >= 12) {
58 len -= 12;
62 switch (len) {
86 u32 a, b, c, len; local
90 len = length;
92 while (len >= 3) {
97 k += 3; len -= 3;
102 switch (len) {
[all...]
/freebsd-11.0-release/sys/netgraph/
H A Dng_pred1.c98 int len);
101 static void Pred1SyncTable(node_p node, u_char *source, int len);
102 static uint16_t Crc16(uint16_t fcs, u_char *cp, int len);
386 int len; local
391 inlen = m->m_pkthdr.len;
421 len = Pred1Compress(node, priv->inbuf + 2, priv->outbuf + 2, inlen);
424 if (len < inlen) {
426 outlen = 2 + len;
446 if (m->m_pkthdr.len < outlen) {
450 } else if (outlen < m->m_pkthdr.len)
467 uint16_t len, len1, cf, lenn; local
582 Pred1Compress(node_p node, u_char *source, u_char *dest, int len) argument
656 Pred1SyncTable(node_p node, u_char *source, int len) argument
674 Crc16(uint16_t crc, u_char *cp, int len) argument
[all...]
/freebsd-11.0-release/lib/libc/stdio/
H A Dfmemopen.c43 size_t len; /* data length in bytes */ member in struct:fmemopen_cookie
130 ck->off = ck->len = strnlen(ck->buf, ck->size);
133 ck->len = size;
136 ck->len = 0;
169 if (nbytes > ck->len - ck->off)
170 nbytes = ck->len - ck->off;
197 if (ck->off > ck->len)
198 ck->len = ck->off;
236 if (offset > 0 || -offset > ck->len) {
240 ck->off = ck->len
[all...]
/freebsd-11.0-release/sbin/ddb/
H A Dddb_capture.c125 size_t buflen, len; local
138 len = buflen;
139 ret = sysctlbyname(SYSCTL_DDB_CAPTURE_DATA, buffer, &len, NULL, 0);
177 size_t len; local
179 len = sizeof(db_capture_bufoff);
180 if (sysctlbyname(SYSCTL_DDB_CAPTURE_BUFOFF, &db_capture_bufoff, &len,
183 len = sizeof(db_capture_bufoff);
185 &len, NULL, 0) < 0)
187 len = sizeof(db_capture_inprogress);
189 &db_capture_inprogress, &len, NUL
[all...]
/freebsd-11.0-release/sys/amd64/vmm/io/
H A Diommu.c92 IOMMU_CREATE_MAPPING(void *domain, vm_paddr_t gpa, vm_paddr_t hpa, uint64_t len) argument
96 return ((*ops->create_mapping)(domain, gpa, hpa, len));
98 return (len); /* XXX */
102 IOMMU_REMOVE_MAPPING(void *domain, vm_paddr_t gpa, uint64_t len) argument
106 return ((*ops->remove_mapping)(domain, gpa, len));
108 return (len); /* XXX */
231 iommu_create_mapping(void *dom, vm_paddr_t gpa, vm_paddr_t hpa, size_t len) argument
235 remaining = len;
246 iommu_remove_mapping(void *dom, vm_paddr_t gpa, size_t len) argument
250 remaining = len;
[all...]
/freebsd-11.0-release/sys/arm/amlogic/aml8726/
H A Daml8726_ccm.c86 ssize_t len; local
91 len = OF_getprop_alloc(node, "functions", sizeof(char),
94 if (len < 0) {
101 while (len) {
103 if (strncmp(f->name, function_name, len) == 0)
110 len, function_name);
114 while (*function_name && len) {
116 len--;
118 if (len) {
120 len
[all...]
/freebsd-11.0-release/sys/arm/arm/
H A Dsys_machdep.c64 sync_icache(uintptr_t addr, size_t len) argument
73 len += addr & 1;
79 size = min(size, len);
90 len -= size;
92 } while (len > 0);
113 if (ua.len == 0) {
122 if (((ua.addr + ua.len) < ua.addr) ||
123 ((ua.addr + ua.len) > VM_MAXUSER_ADDRESS)) {
133 rv = sync_icache(ua.addr, ua.len);
143 cpu_icache_sync_range(ua.addr, ua.len);
[all...]
/freebsd-11.0-release/sbin/ifconfig/
H A Difgroup.c85 int len, cnt; local
99 len = ifgr.ifgr_len;
101 (struct ifg_req *)calloc(len / sizeof(struct ifg_req),
110 for (; ifg && len >= sizeof(struct ifg_req); ifg++) {
111 len -= sizeof(struct ifg_req);
130 int len, cnt = 0; local
146 len = ifgr.ifgr_len;
147 if ((ifgr.ifgr_groups = calloc(1, len)) == NULL)
152 for (ifg = ifgr.ifgr_groups; ifg && len >= sizeof(struct ifg_req);
154 len
[all...]
/freebsd-11.0-release/sys/compat/linuxkpi/common/include/linux/
H A Djhash.h50 u32 a, b, c, len; local
53 len = length;
57 while (len >= 12) {
65 len -= 12;
69 switch (len) {
93 u32 a, b, c, len; local
97 len = length;
99 while (len >= 3) {
104 k += 3; len -= 3;
109 switch (len) {
[all...]
/freebsd-11.0-release/contrib/ntp/sntp/
H A Dcrypto.c19 u_int len = mac_size; local
35 EVP_DigestFinal(ctx, digest, &len);
38 return (int)len;
139 int len = strlen(keystring); local
140 if (len <= 20) {
141 act->key_len = len;
142 memcpy(act->key_seq, keystring, len + 1);
144 } else if ((len & 1) != 0) {
149 act->key_len = len >> 1;
150 for (j = 0; j < len;
[all...]
/freebsd-11.0-release/contrib/nvi/vi/
H A Dv_match.c41 size_t cno, len, off; local
63 if (db_eget(sp, vp->m_start.lno, &p, &len, &isempty)) {
69 if (off >= len) {
144 if (db_get(sp, mp->lno, DBG_FATAL, &p, &len))
146 for (p += mp->cno + 1, len -= mp->cno; --len; ++p)
163 size_t len = strlen(str) + 1; local
167 MALLOC(sp, *mp, CHAR_T *, len * sizeof(CHAR_T));
171 if (mbstowcs(*mp, str, len) == (size_t)-1)
174 memcpy(*mp, str, len);
[all...]
/freebsd-11.0-release/usr.sbin/fwcontrol/
H A Dfwmpegts.c76 | len |tag| channel | tcode | sy |
160 int fd, k, len, m, pkt_size, startwr, tlen; local
191 len = tlen = read(d, buf, RBUFSIZE);
193 fprintf(stderr, "Read %d bytes.\n", len);
195 if (len < 0) {
223 if (pkt->mode.stream.len <= sizeof(struct ciphdr)) {
232 pkt->mode.stream.len - sizeof(struct ciphdr));
234 ciph->len, ciph->len * 4);
252 pkt->mode.stream.len
[all...]
/freebsd-11.0-release/usr.sbin/uathload/
H A Duathload.c62 uint32_t len; member in struct:uath_fwmsg
119 ssize_t len; local
155 len = sb.st_size;
181 txmsg.total = htobe32(len);
184 while (len > 0) {
187 mlen = len;
190 txmsg.remain = htobe32(len - mlen);
191 txmsg.len = htobe32(mlen);
194 VERBOSE("send block %2u: %zd bytes remaining", b, len - mlen);
220 len
[all...]
/freebsd-11.0-release/contrib/unbound/validator/
H A Dval_secalgo.c89 secalgo_nsec3_hash(int algo, unsigned char* buf, size_t len, argument
94 (void)SHA1(buf, len, res);
138 do_gost94(unsigned char* data, size_t len, unsigned char* dest) argument
143 return sldns_digest_evp(data, (unsigned int)len, dest, md);
148 secalgo_ds_digest(int algo, unsigned char* buf, size_t len, argument
154 (void)SHA1(buf, len, res);
159 (void)SHA256(buf, len, res);
164 if(do_gost94(buf, len, res))
170 (void)SHA384(buf, len, res);
234 * @param len
238 setup_dsa_sig(unsigned char** sig, unsigned int* len) argument
282 setup_ecdsa_sig(unsigned char** sig, unsigned int* len) argument
611 secalgo_nsec3_hash(int algo, unsigned char* buf, size_t len, unsigned char* res) argument
646 secalgo_ds_digest(int algo, unsigned char* buf, size_t len, unsigned char* res) argument
725 nss_buf2ecdsa(unsigned char* key, size_t len, int algo) argument
779 nss_buf2dsa(unsigned char* key, size_t len) argument
840 nss_buf2rsa(unsigned char* key, size_t len) argument
1141 _digest_nettle(int algo, uint8_t* buf, size_t len, unsigned char* res) argument
1197 secalgo_nsec3_hash(int algo, unsigned char* buf, size_t len, unsigned char* res) argument
1237 secalgo_ds_digest(int algo, unsigned char* buf, size_t len, unsigned char* res) argument
[all...]
/freebsd-11.0-release/contrib/wpa/src/radius/
H A Dradius.c278 int len; local
290 len = hdr->length - sizeof(struct radius_attr_hdr);
295 printf_encode(buf, sizeof(buf), pos, len);
300 if (len == 4) {
307 len);
313 if (len == 16) {
321 len);
328 wpa_snprintf_hex(buf, sizeof(buf), pos, len);
333 if (len == 4)
338 len);
399 size_t len[4]; local
439 size_t len[2]; local
477 size_t len[2]; local
498 size_t len[2]; local
519 size_t len[4]; local
541 size_t len[4]; local
662 radius_msg_parse(const u8 *data, size_t len) argument
731 int len; local
752 size_t len, i; local
839 size_t len[4]; local
897 radius_msg_make_authenticator(struct radius_msg *msg, const u8 *data, size_t len) argument
927 size_t i, len; local
982 decrypt_ms_key(const u8 *key, size_t len, const u8 *req_authenticator, const u8 *secret, size_t secret_len, size_t *reslen) argument
1063 int i, len, first = 1; local
1256 radius_msg_add_wfa(struct radius_msg *msg, u8 subtype, const u8 *data, size_t len) argument
1290 size_t len[2]; local
1354 radius_msg_get_attr(struct radius_msg *msg, u8 type, u8 *buf, size_t len) argument
1377 radius_msg_get_attr_ptr(struct radius_msg *msg, u8 type, u8 **buf, size_t *len, const u8 *start) argument
1514 size_t len[3]; local
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/asn1/
H A Dasn1_print.c51 loop (unsigned char *buf, size_t len, int indent) argument
55 while (len > 0) {
66 ret = der_get_tag (buf, len, &class, &type, &tag, &sz);
69 if (sz > len)
71 (unsigned)sz, (unsigned)len);
73 len -= sz;
85 ret = der_get_length (buf, len, &length, &sz);
88 if (sz > len)
90 (unsigned)sz, (unsigned)len);
92 len
297 size_t len; local
[all...]

Completed in 291 milliseconds

<<41424344454647484950>>