Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/freebsd/contrib/unbound/sldns/
H A Dwire2str.c270 size_t slen = (size_t)sldns_wire2str_pkt_buf(data, len, NULL, 0); in sldns_wire2str_pkt() local
271 char* result = (char*)malloc(slen+1); in sldns_wire2str_pkt()
273 sldns_wire2str_pkt_buf(data, len, result, slen+1); in sldns_wire2str_pkt()
279 size_t slen = (size_t)sldns_wire2str_rr_buf(rr, len, NULL, 0); in sldns_wire2str_rr() local
280 char* result = (char*)malloc(slen+1); in sldns_wire2str_rr()
282 sldns_wire2str_rr_buf(rr, len, result, slen+1); in sldns_wire2str_rr()
302 size_t slen=(size_t)sldns_wire2str_dname_buf(dname, dname_len, NULL, 0); in sldns_wire2str_dname() local
303 char* result = (char*)malloc(slen+1); in sldns_wire2str_dname()
305 sldns_wire2str_dname_buf(dname, dname_len, result, slen+1); in sldns_wire2str_dname()
316 int sldns_wire2str_pkt_buf(uint8_t* d, size_t dlen, char* s, size_t slen) in sldns_wire2str_pkt_buf() argument
[all …]
/freebsd/crypto/openssh/regress/unittests/test_helper/
H A Dfuzz.c68 size_t slen; member
112 fuzz->o1, fuzz->slen * 8, fuzz->o1); in fuzz_fmt()
117 (((fuzz_ullong)fuzz->o2) * fuzz->slen * 8) + fuzz->o1, in fuzz_fmt()
118 ((fuzz_ullong)fuzz->slen * 8) * fuzz->slen * 8, in fuzz_fmt()
124 fuzz->o1, fuzz->slen, fuzz->o1); in fuzz_fmt()
129 (((fuzz_ullong)fuzz->o2) * fuzz->slen) + fuzz->o1, in fuzz_fmt()
130 ((fuzz_ullong)fuzz->slen) * fuzz->slen, in fuzz_fmt()
136 fuzz->o1, fuzz->slen, fuzz->o1); in fuzz_fmt()
141 fuzz->o1, fuzz->slen, fuzz->o1); in fuzz_fmt()
148 fuzz->slen * (fuzz_ullong)64, fuzz->o1, in fuzz_fmt()
[all …]
/freebsd/include/ssp/
H A Dwchar.h62 const size_t slen = __ssp_wbos(buf); variable
64 if (len > slen)
75 const size_t slen = __ssp_wbos(buf); variable
77 if (len > slen)
88 const size_t slen = __ssp_wbos(buf); variable
90 if (len > slen)
99 const size_t slen = __ssp_wbos(buf); variable
101 if (len > slen)
109 const size_t slen = __ssp_wbos(buf); variable
112 if (len >= slen)
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/
H A Daead_chacha20poly1305.c33 unsigned char slen[8U]; in crypto_aead_chacha20poly1305_encrypt_detached() local
41 STORE64_LE(slen, (uint64_t) adlen); in crypto_aead_chacha20poly1305_encrypt_detached()
42 crypto_onetimeauth_poly1305_update(&state, slen, sizeof slen); in crypto_aead_chacha20poly1305_encrypt_detached()
47 STORE64_LE(slen, (uint64_t) mlen); in crypto_aead_chacha20poly1305_encrypt_detached()
48 crypto_onetimeauth_poly1305_update(&state, slen, sizeof slen); in crypto_aead_chacha20poly1305_encrypt_detached()
104 unsigned char slen[8U]; in crypto_aead_chacha20poly1305_ietf_encrypt_detached() local
119 STORE64_LE(slen, (uint64_t) adlen); in crypto_aead_chacha20poly1305_ietf_encrypt_detached()
120 crypto_onetimeauth_poly1305_update(&state, slen, sizeof slen); in crypto_aead_chacha20poly1305_ietf_encrypt_detached()
122 STORE64_LE(slen, (uint64_t) mlen); in crypto_aead_chacha20poly1305_ietf_encrypt_detached()
123 crypto_onetimeauth_poly1305_update(&state, slen, sizeof slen); in crypto_aead_chacha20poly1305_ietf_encrypt_detached()
[all …]
/freebsd/contrib/bearssl/src/ec/
H A Decdsa_atr.c44 size_t zlen, rlen, slen, off; in br_ecdsa_asn1_to_raw() local
104 slen = buf[off ++]; in br_ecdsa_asn1_to_raw()
105 if (slen >= 0x80 || slen != sig_len - off) { in br_ecdsa_asn1_to_raw()
117 while (slen > 0 && *s == 0) { in br_ecdsa_asn1_to_raw()
118 slen --; in br_ecdsa_asn1_to_raw()
127 zlen = rlen > slen ? rlen : slen; in br_ecdsa_asn1_to_raw()
131 memcpy(tmp + sig_len - slen, s, slen); in br_ecdsa_asn1_to_raw()
H A Decdsa_rta.c58 size_t hlen, rlen, slen, zlen, off; in br_ecdsa_raw_to_asn1() local
71 slen = asn1_int_length(buf + hlen, hlen); in br_ecdsa_raw_to_asn1()
72 if (rlen > 125 || slen > 125) { in br_ecdsa_raw_to_asn1()
80 zlen = rlen + slen + 4; in br_ecdsa_raw_to_asn1()
107 tmp[off ++] = slen; in br_ecdsa_raw_to_asn1()
108 if (slen > hlen) { in br_ecdsa_raw_to_asn1()
112 memcpy(tmp + off, buf + sig_len - slen, slen); in br_ecdsa_raw_to_asn1()
114 off += slen; in br_ecdsa_raw_to_asn1()
/freebsd/contrib/unbound/dnstap/
H A Ddnstap_fstrm.c178 size_t remain, slen = sizeof(buf); in fstrm_describe_control() local
189 (void)sldns_str_print(&str, &slen, "accept"); in fstrm_describe_control()
191 (void)sldns_str_print(&str, &slen, "start"); in fstrm_describe_control()
193 (void)sldns_str_print(&str, &slen, "stop"); in fstrm_describe_control()
195 (void)sldns_str_print(&str, &slen, "ready"); in fstrm_describe_control()
197 (void)sldns_str_print(&str, &slen, "finish"); in fstrm_describe_control()
199 (void)sldns_str_print(&str, &slen, "type%d", (int)frametype); in fstrm_describe_control()
209 (void)sldns_str_print(&str, &slen, "malformed_field"); in fstrm_describe_control()
214 (void)sldns_str_print(&str, &slen, " content-type("); in fstrm_describe_control()
218 (void)sldns_str_print(&str, &slen, "%s", tempf); in fstrm_describe_control()
[all …]
/freebsd/contrib/unbound/ipsecmod/
H A Dipsecmod.c189 domainname_has_safe_characters(char* s, size_t slen) { in domainname_has_safe_characters() argument
191 for(i = 0; i < slen; i++) { in domainname_has_safe_characters()
215 ipseckey_has_safe_characters(char* s, size_t slen) { in ipseckey_has_safe_characters() argument
218 gateway = (char*)calloc(slen, sizeof(char)); in ipseckey_has_safe_characters()
232 if(domainname_has_safe_characters(gateway, slen)) { in ipseckey_has_safe_characters()
252 size_t slen, tempdata_len, tempstring_len, i; in call_hook() local
267 slen = sizeof(str); in call_hook()
268 memset(s, 0, slen); in call_hook()
271 w += sldns_str_print(&s, &slen, "%s", qstate->env->cfg->ipsecmod_hook); in call_hook()
273 w += sldns_str_print(&s, &slen, " "); in call_hook()
[all …]
/freebsd/lib/libc/string/
H A Dwcsxfrm.c44 size_t slen; in wcsxfrm_l() local
56 ((slen = _collate_wxfrm(table, src, dest, len)) == (size_t)-1)) { in wcsxfrm_l()
61 if (len > slen) { in wcsxfrm_l()
62 dest[slen] = 0; in wcsxfrm_l()
67 return (slen); in wcsxfrm_l()
70 slen = wcslen(src); in wcsxfrm_l()
71 if (slen < len) in wcsxfrm_l()
77 return (slen); in wcsxfrm_l()
/freebsd/sys/dev/speaker/
H A Dspkr.c57 static void playstring(char *cp, size_t slen);
223 playstring(char *cp, size_t slen) in playstring() argument
227 #define GETNUM(cp, v) for(v=0; isdigit(cp[1]) && slen > 0; ) \ in playstring()
228 {v = v * 10 + (*++cp - '0'); slen--;} in playstring()
229 for (; slen--; cp++) { in playstring()
252 slen--; in playstring()
256 slen--; in playstring()
287 slen--; in playstring()
296 slen--; in playstring()
308 slen--; in playstring()
[all …]
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_sd.c333 u16 slen; in p2p_rx_gas_initial_req() local
363 slen = *pos++; in p2p_rx_gas_initial_req()
364 if (slen > end - pos || slen < 2) { in p2p_rx_gas_initial_req()
368 next = pos + slen; in p2p_rx_gas_initial_req()
381 slen = WPA_GET_LE16(pos); in p2p_rx_gas_initial_req()
383 if (slen > end - pos) in p2p_rx_gas_initial_req()
385 end = pos + slen; in p2p_rx_gas_initial_req()
396 slen = WPA_GET_LE16(pos); in p2p_rx_gas_initial_req()
398 if (slen > end - pos || slen < 3 + 1) { in p2p_rx_gas_initial_req()
489 u16 slen; in p2p_rx_gas_initial_resp() local
[all …]
/freebsd/contrib/ntp/libntp/
H A Dntp_realpath.c105 ssize_t slen; in realpath1() local
194 slen = readlink(resolved, link_tgt, sizeof(link_tgt)); in realpath1()
195 if (slen <= 0 || slen >= (ssize_t)sizeof(link_tgt)) { in realpath1()
196 if (slen < 0) { in realpath1()
198 } else if (slen == 0) { in realpath1()
205 link_tgt[slen] = '\0'; in realpath1()
222 if (link_tgt[slen - 1] != '/') { in realpath1()
223 if (slen + 1 >= (ssize_t)sizeof(link_tgt)) { in realpath1()
227 link_tgt[slen] in realpath1()
[all...]
/freebsd/lib/libc/stdio/
H A Dmktemp.c52 mkostempsat(int dfd, char *path, int slen, int oflags) in mkostempsat() argument
56 return (_gettemp(dfd, path, &fd, 0, slen, oflags) ? fd : -1); in mkostempsat()
60 mkostemps(char *path, int slen, int oflags) in mkostemps() argument
64 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, oflags) ? fd : -1); in mkostemps()
68 mkstemps(char *path, int slen) in mkstemps() argument
72 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, 0) ? fd : -1); in mkstemps()
113 _gettemp(int dfd, char *path, int *doopen, int domkdir, int slen, int oflags) in _gettemp() argument
122 if ((doopen != NULL && domkdir) || slen < 0 || in _gettemp()
134 trv -= slen; in _gettemp()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/
H A Dsecretstream_xchacha20poly1305.c119 unsigned char slen[8U]; in crypto_secretstream_xchacha20poly1305_push() local
150 STORE64_LE(slen, (uint64_t) adlen); in crypto_secretstream_xchacha20poly1305_push()
151 crypto_onetimeauth_poly1305_update(&poly1305_state, slen, sizeof slen); in crypto_secretstream_xchacha20poly1305_push()
152 STORE64_LE(slen, (sizeof block) + mlen); in crypto_secretstream_xchacha20poly1305_push()
153 crypto_onetimeauth_poly1305_update(&poly1305_state, slen, sizeof slen); in crypto_secretstream_xchacha20poly1305_push()
185 unsigned char slen[8U]; in crypto_secretstream_xchacha20poly1305_pull() local
226 STORE64_LE(slen, (uint64_t) adlen); in crypto_secretstream_xchacha20poly1305_pull()
227 crypto_onetimeauth_poly1305_update(&poly1305_state, slen, sizeof slen); in crypto_secretstream_xchacha20poly1305_pull()
228 STORE64_LE(slen, (sizeof block) + mlen); in crypto_secretstream_xchacha20poly1305_pull()
229 crypto_onetimeauth_poly1305_update(&poly1305_state, slen, sizeof slen); in crypto_secretstream_xchacha20poly1305_pull()
/freebsd/contrib/jemalloc/src/
H A Dmalloc_io.c351 #define APPEND_S(s, slen) do { \ in malloc_vsnprintf() argument
353 size_t cpylen = (slen <= size - i) ? slen : size - i; \ in malloc_vsnprintf()
356 i += slen; \ in malloc_vsnprintf()
358 #define APPEND_PADDED_S(s, slen, width, left_justify) do { \ in malloc_vsnprintf() argument
360 size_t pad_len = (width == -1) ? 0 : ((slen < (size_t)width) ? \ in malloc_vsnprintf()
361 (size_t)width - slen : 0); \ in malloc_vsnprintf()
369 APPEND_S(s, slen); \ in malloc_vsnprintf()
436 size_t slen; in malloc_vsnprintf() local
540 ' ' : '-')), buf, &slen); in malloc_vsnprintf()
541 APPEND_PADDED_S(s, slen, width, left_justify); in malloc_vsnprintf()
[all …]
/freebsd/lib/libc/stdlib/
H A Drealpath.c59 ssize_t slen; in realpath1() local
148 slen = readlink(resolved, symlink, sizeof(symlink)); in realpath1()
149 if (slen < 0) in realpath1()
151 if (slen == 0) { in realpath1()
155 if ((size_t)slen >= sizeof(symlink)) { in realpath1()
159 symlink[slen] = '\0'; in realpath1()
176 if (symlink[slen - 1] != '/') { in realpath1()
177 if ((size_t)slen + 1 >= sizeof(symlink)) { in realpath1()
181 symlink[slen] = '/'; in realpath1()
182 symlink[slen + 1] = 0; in realpath1()
/freebsd/contrib/bearssl/src/x509/
H A Dencode_rsa_rawder.c54 size_t u, slen; in br_encode_rsa_raw_der() local
73 slen = 0; in br_encode_rsa_raw_der()
78 slen += 1 + len_of_len(ilen) + ilen; in br_encode_rsa_raw_der()
82 return 1 + len_of_len(slen) + slen; in br_encode_rsa_raw_der()
89 lenlen = br_asn1_encode_length(buf, slen); in br_encode_rsa_raw_der()
94 return 1 + lenlen + slen; in br_encode_rsa_raw_der()
/freebsd/crypto/openssh/regress/misc/fuzz-harness/
H A Dsig_fuzz.cc25 int LLVMFuzzerTestOneInput(const uint8_t* sig, size_t slen) in LLVMFuzzerTestOneInput() argument
41 sshkey_verify(rsa, sig, slen, (const u_char *)data, dlen, NULL, 0, &details); in LLVMFuzzerTestOneInput()
44 sshkey_verify(dsa, sig, slen, (const u_char *)data, dlen, NULL, 0, &details); in LLVMFuzzerTestOneInput()
47 sshkey_verify(ecdsa256, sig, slen, (const u_char *)data, dlen, NULL, 0, &details); in LLVMFuzzerTestOneInput()
50 sshkey_verify(ecdsa384, sig, slen, (const u_char *)data, dlen, NULL, 0, &details); in LLVMFuzzerTestOneInput()
53 sshkey_verify(ecdsa521, sig, slen, (const u_char *)data, dlen, NULL, 0, &details); in LLVMFuzzerTestOneInput()
57 sshkey_verify(ed25519, sig, slen, (const u_char *)data, dlen, NULL, 0, &details); in LLVMFuzzerTestOneInput()
/freebsd/contrib/blocklist/test/
H A Dcltest.c63 socklen_t *slen) in getaddr() argument
74 *slen = sizeof(*s6); in getaddr()
80 *slen = sizeof(*s); in getaddr()
84 ss->ss_len = (uint8_t)*slen; in getaddr()
100 socklen_t slen; in main() local
122 getaddr(addr, port, &ss, &slen); in main()
129 if (connect(sfd, (const void *)&ss, slen) == -1) in main()
H A Dsrvtest.c87 socklen_t slen; in process_udp() local
91 slen = (socklen_t)sizeof(ss); in process_udp()
94 &slen)) == -1) in process_udp()
98 blacklist_sa(1, afd, (void *)&ss, slen, buffer); in process_udp()
106 socklen_t slen; in cr() local
116 slen = sizeof(*s); in cr()
121 slen = sizeof(*s6); in cr()
125 ss.ss_len = (uint8_t)slen; in cr()
128 if (bind(sfd, (const void *)&ss, slen) == -1) in cr()
/freebsd/sys/contrib/openzfs/lib/libspl/
H A Dstrlcpy.c41 size_t slen = strlen(src); in strlcpy() local
45 return (slen); in strlcpy()
47 if (slen >= len) in strlcpy()
50 copied = slen; in strlcpy()
53 return (slen); in strlcpy()
/freebsd/lib/libc/secure/
H A Dstrncat_chk.c42 size_t slen) in __strncat_chk() argument
49 if (len > slen) in __strncat_chk()
53 if (slen-- == 0) in __strncat_chk()
60 if (slen-- == 0) in __strncat_chk()
65 if (slen-- == 0) in __strncat_chk()
/freebsd/crypto/openssh/
H A Dsftp-realpath.c64 int serrno, slen, mem_allocated; in sftp_realpath() local
173 slen = readlink(resolved, symlink, sizeof(symlink) - 1); in sftp_realpath()
174 if (slen < 0) in sftp_realpath()
176 symlink[slen] = '\0'; in sftp_realpath()
194 if (symlink[slen - 1] != '/') { in sftp_realpath()
195 if (slen + 1 >= in sftp_realpath()
200 symlink[slen] = '/'; in sftp_realpath()
201 symlink[slen + 1] = 0; in sftp_realpath()
/freebsd/contrib/bearssl/src/ssl/
H A Dprf_md5sha1.c34 size_t slen; in br_tls10_prf() local
37 slen = (secret_len + 1) >> 1; in br_tls10_prf()
40 s1, slen, label, seed_num, seed); in br_tls10_prf()
42 s1 + secret_len - slen, slen, label, seed_num, seed); in br_tls10_prf()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dhs20_supplicant.c461 size_t slen, u8 dialog_token) in hs20_process_icon_binary_file() argument
472 icon->image = os_memdup(pos, slen); in hs20_process_icon_binary_file()
475 icon->image_len = slen; in hs20_process_icon_binary_file()
488 if (slen < 4) { in hs20_process_icon_binary_file()
498 slen--; in hs20_process_icon_binary_file()
500 if ((size_t) 1 + pos[0] > slen) { in hs20_process_icon_binary_file()
507 slen -= 1 + pos[0]; in hs20_process_icon_binary_file()
510 if (slen < 2) { in hs20_process_icon_binary_file()
517 slen -= 2; in hs20_process_icon_binary_file()
519 if (data_len > slen) { in hs20_process_icon_binary_file()
[all …]

12345678910>>...13