Searched refs:len (Results 201 - 225 of 6914) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/
H A Disqemu.h46 size_t len; local
49 if (sysctlbyname("kern.vm_guest", NULL, &len, NULL, 0) == -1)
52 if ((vm_guest_name_buf = malloc(len)) == NULL)
55 if (sysctlbyname("kern.vm_guest", vm_guest_name_buf, &len, NULL, 0)
70 size_t len = sizeof(name);
72 if (sysctlbyname("machdep.cpu_brand", name, &len, NULL, 0) == -1) {
/freebsd-11-stable/usr.sbin/traceroute/
H A Dfindsaddr-udp.c61 socklen_t len; local
68 len = sizeof(struct sockaddr_in);
69 memcpy(&cto, to, len);
71 if (connect(s, (struct sockaddr *)&cto, len) == -1) {
76 if (getsockname(s, (struct sockaddr *)&cfrom, &len) == -1) {
81 if (len != sizeof(struct sockaddr_in) || cfrom.sin_family != AF_INET) {
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_straddch.c52 openpam_straddch(char **str, size_t *size, size_t *len, int ch) argument
67 *len = 0;
68 } else if (ch != 0 && *len + 1 >= *size) {
80 (*str)[*len] = ch;
81 ++*len;
83 (*str)[*len] = '\0';
96 * The =size and =len argument point to variables used to hold the size
112 * integer variable pointed to by =len (unless =ch was 0) and returns 0.
113 * Otherwise, it leaves the variables pointed to by =str, =size and =len
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dsha1-prf.c38 size_t len[3]; local
41 len[0] = label_len;
43 len[1] = data_len;
45 len[2] = 1;
51 if (hmac_sha1_vector(key, key_len, 3, addr, len,
56 if (hmac_sha1_vector(key, key_len, 3, addr, len,
H A Dsha256-tlsprf.c37 size_t len[3]; local
40 len[0] = SHA256_MAC_LEN;
42 len[1] = os_strlen(label);
44 len[2] = seed_len;
53 if (hmac_sha256_vector(secret, secret_len, 2, &addr[1], &len[1], A) < 0)
58 if (hmac_sha256_vector(secret, secret_len, 3, addr, len, P) <
/freebsd-11-stable/contrib/unbound/sldns/
H A Dkeyraw.h34 * \param[in] len the length of the keydata
39 const size_t len, int alg);
63 * \param[in] len length of key data
66 DSA *sldns_key_buf2dsa_raw(unsigned char* key, size_t len);
90 * \param[in] len length of key data
93 RSA *sldns_key_buf2rsa_raw(unsigned char* key, size_t len);
99 * \param[in] len length of key data
102 EVP_PKEY* sldns_ed255192pkey_raw(const unsigned char* key, size_t len);
108 * \param[in] len length of key data
111 EVP_PKEY* sldns_ed4482pkey_raw(const unsigned char* key, size_t len);
[all...]
/freebsd-11-stable/contrib/xz/src/common/
H A Dtuklib_mbstr_width.c24 const size_t len = strlen(str); local
26 *bytes = len;
31 return len;
42 while (i < len) {
44 const size_t ret = mbrtowc(&wc, str + i, len - i, &state);
45 if (ret < 1 || ret > len)
/freebsd-11-stable/contrib/apr-util/include/
H A Dapr_siphash.h64 * @param len The length of the message
70 APU_DECLARE(apr_uint64_t) apr_siphash(const void *src, apr_size_t len,
81 * @param len The length of the message
88 const void *src, apr_size_t len,
96 * @param len The length of the message
100 APU_DECLARE(apr_uint64_t) apr_siphash24(const void *src, apr_size_t len,
110 * @param len The length of the message
115 const void *src, apr_size_t len,
122 * @param len The length of the message
126 APU_DECLARE(apr_uint64_t) apr_siphash48(const void *src, apr_size_t len,
[all...]
/freebsd-11-stable/contrib/apr/include/
H A Dapr_encode.h87 * returned in the len field, including space for a terminating zero character
92 * and the actual number of characters written is returned in the len field,
157 * @param len If present and src is NULL, returns the maximum possible length
163 apr_ssize_t slen, int flags, apr_size_t * len);
174 * @param len If present and src is NULL, returns the maximum possible length
180 apr_ssize_t slen, int flags, apr_size_t * len);
192 * @param len If present, returns the number of characters written excluding
198 apr_ssize_t slen, int flags, apr_size_t * len)__attribute__((nonnull(1)));
209 * @param len If present, returns the number of characters written excluding
215 apr_ssize_t slen, int flags, apr_size_t * len)__attribute_
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devent_tagging.c155 int len = encode_int_internal(data, number); local
156 evbuffer_add(evbuf, data, len);
163 int len = encode_int64_internal(data, number); local
164 evbuffer_add(evbuf, data, len);
199 size_t len = evbuffer_get_length(evbuf); local
209 evbuf, len < sizeof(number) + 1 ? len : sizeof(number) + 1);
213 while (count++ < len) {
257 const void *data, ev_uint32_t len)
260 evtag_encode_int(evbuf, len);
256 evtag_marshal(struct evbuffer *evbuf, ev_uint32_t tag, const void *data, ev_uint32_t len) argument
279 int len = encode_int_internal(data, integer); local
291 int len = encode_int64_internal(data, integer); local
309 int len = encode_int_internal(data, tv->tv_sec); local
403 int res, len; local
421 int res, len; local
439 ev_uint32_t len; local
455 int len; local
468 int len; local
488 ev_uint32_t len; local
514 ev_uint32_t len; local
538 evtag_unmarshal_fixed(struct evbuffer *src, ev_uint32_t need_tag, void *data, size_t len) argument
584 int len, offset, offset2; local
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dhmacsha.c40 unsigned int len)
42 HMAC_Init(ctx, (const void *) key, (int) len, EVP_sha1());
52 unsigned int len)
54 HMAC_Update(ctx, buf, (int) len);
58 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) { argument
61 REQUIRE(len <= ISC_SHA1_DIGESTLENGTH);
65 memcpy(digest, newdigest, len);
71 unsigned int len)
73 HMAC_Init(ctx, (const void *) key, (int) len, EVP_sha224());
83 unsigned int len)
39 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, unsigned int len) argument
51 isc_hmacsha1_update(isc_hmacsha1_t *ctx, const unsigned char *buf, unsigned int len) argument
70 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, unsigned int len) argument
82 isc_hmacsha224_update(isc_hmacsha224_t *ctx, const unsigned char *buf, unsigned int len) argument
89 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument
101 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, unsigned int len) argument
113 isc_hmacsha256_update(isc_hmacsha256_t *ctx, const unsigned char *buf, unsigned int len) argument
120 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument
132 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, unsigned int len) argument
144 isc_hmacsha384_update(isc_hmacsha384_t *ctx, const unsigned char *buf, unsigned int len) argument
151 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument
163 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, unsigned int len) argument
175 isc_hmacsha512_update(isc_hmacsha512_t *ctx, const unsigned char *buf, unsigned int len) argument
182 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument
202 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, unsigned int len) argument
235 isc_hmacsha1_update(isc_hmacsha1_t *ctx, const unsigned char *buf, unsigned int len) argument
245 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) argument
270 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, unsigned int len) argument
302 isc_hmacsha224_update(isc_hmacsha224_t *ctx, const unsigned char *buf, unsigned int len) argument
312 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument
336 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, unsigned int len) argument
368 isc_hmacsha256_update(isc_hmacsha256_t *ctx, const unsigned char *buf, unsigned int len) argument
378 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument
402 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, unsigned int len) argument
434 isc_hmacsha384_update(isc_hmacsha384_t *ctx, const unsigned char *buf, unsigned int len) argument
444 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument
468 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, unsigned int len) argument
500 isc_hmacsha512_update(isc_hmacsha512_t *ctx, const unsigned char *buf, unsigned int len) argument
510 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument
536 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) argument
549 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument
562 isc_hmacsha256_verify(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument
575 isc_hmacsha384_verify(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument
588 isc_hmacsha512_verify(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument
[all...]
/freebsd-11-stable/contrib/mdocml/
H A Dcompat_strcasestr.c57 size_t len; local
61 len = strlen(find);
67 } while (strncasecmp(s, find, len) != 0);
/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/
H A Dstrings.c70 _nc_str_init(string_desc * dst, char *src, size_t len) argument
75 dst->s_size = len - 1;
87 _nc_str_null(string_desc * dst, size_t len) argument
89 return _nc_str_init(dst, 0, len);
109 size_t len = strlen(src); local
111 if (len < dst->s_size) {
114 dst->s_tail += len;
116 dst->s_size -= len;
130 size_t len = strlen(src); local
132 if (len < ds
[all...]
/freebsd-11-stable/contrib/gdb/gdb/
H A Di386obsd-nat.c48 size_t len; local
52 len = sizeof (_ps);
53 if (sysctl (mib, 2, &_ps, &len, NULL, 0) == 0)
/freebsd-11-stable/sys/arm64/include/
H A Din_cksum.h41 #define in_cksum(m, len) in_cksum_skip(m, len, 0)
43 u_short in_cksum_skip(struct mbuf *m, int len, int skip);
/freebsd-11-stable/crypto/heimdal/appl/gssmask/
H A Dcommon.c40 size_t len = strlen(str) + 1; local
43 ret = krb5_store_int32(sp, len);
46 ret = krb5_storage_write(sp, str, len);
47 if (ret != len)
53 add_list(char ****list, size_t *listlen, char **str, size_t len) argument
58 (*list)[*listlen] = ecalloc(len, sizeof(**list));
59 for (i = 0; i < len; i++)
66 char **str, const int start, const int len)
72 for (i = start; i < len - 1; i++) {
73 for (j = i+1; j < len;
65 permute(char ****list, size_t *listlen, char **str, const int start, const int len) argument
[all...]
/freebsd-11-stable/lib/libc/string/
H A Dwcsstr.c50 size_t len; local
53 len = wcslen(find);
59 } while (wcsncmp(s, find, len) != 0);
/freebsd-11-stable/lib/libopenbsd/
H A Dgetdtablecount.c46 size_t len; local
48 len = sizeof(nfds);
54 error = sysctl(mib, 4, &nfds, &len, NULL, 0);
/freebsd-11-stable/crypto/openssl/util/
H A Dclean-depend.pl33 my $len=0;
48 $len=0 if $len+length($dep)+1 >= 80;
49 if($len == 0) {
51 $len=length($file)+1;
54 $len+=length($dep)+1;
/freebsd-11-stable/lib/libc/db/hash/
H A Dhash_func.c67 hash1(const void *key, size_t len) argument
75 while (len--)
87 hash2(const void *key, size_t len) argument
93 e = k + len;
113 hash3(const void *key, size_t len) argument
122 if (len > 0) {
123 loop = (len + 8 - 1) >> 3;
125 switch (len & (8 - 1)) {
153 hash4(const void *key, size_t len) argument
164 if (len >
[all...]
/freebsd-11-stable/lib/libc/gen/
H A Dfdevname.c37 fdevname_r(int fd, char *buf, int len) argument
42 fgn.len = len;
/freebsd-11-stable/contrib/nvi/vi/
H A Dv_right.c36 size_t len; local
39 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) {
46 if (len == 0) {
62 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) {
66 if (vp->m_stop.cno >= len) {
67 vp->m_stop.cno = len - 1;
86 size_t len; local
120 if (db_eget(sp, vp->m_stop.lno, NULL, &len, &isempty)) {
123 len = 0;
126 if (len
[all...]
/freebsd-11-stable/sys/riscv/include/
H A Din_cksum.h41 #define in_cksum(m, len) in_cksum_skip(m, len, 0)
43 u_short in_cksum_skip(struct mbuf *m, int len, int skip);
/freebsd-11-stable/sys/libkern/
H A Dstrstr.c50 size_t len; local
53 len = strlen(find);
59 } while (strncmp(s, find, len) != 0);
/freebsd-11-stable/crypto/openssl/crypto/rc4/
H A Drc4.h79 void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);
80 void private_RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);
81 void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,

Completed in 303 milliseconds

1234567891011>>