/freebsd-11-stable/crypto/openssl/apps/ |
H A D | ecparam.c | 429 size_t buf_len = 0, tmp_len = 0; local 468 if ((tmp_len = (size_t)BN_num_bytes(ec_p)) > buf_len) 469 buf_len = tmp_len; 470 if ((tmp_len = (size_t)BN_num_bytes(ec_a)) > buf_len) 471 buf_len = tmp_len; 472 if ((tmp_len = (size_t)BN_num_bytes(ec_b)) > buf_len) 473 buf_len = tmp_len; 474 if ((tmp_len = (size_t)BN_num_bytes(ec_gen)) > buf_len) 475 buf_len = tmp_len; 476 if ((tmp_len = (size_t)BN_num_bytes(ec_order)) > buf_len) [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_peer/ |
H A D | eap_teap_pac.c | 185 size_t buf_len; member in struct:eap_teap_read_ctx 194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) 206 if (len >= rc->buf_len) 207 len = rc->buf_len - 1; 213 rc->buf[rc->buf_len - 1] = '\0'; 259 rc->buf_len = 2048; 260 rc->buf = os_malloc(rc->buf_len); 478 static void eap_teap_write(char **buf, char **pos, size_t *buf_len, argument 493 if (*pos - *buf + need > *buf_len) { 494 char *nbuf = os_realloc(*buf, *buf_len 579 eap_teap_add_pac_data(struct eap_teap_pac *pac, char **buf, char **pos, size_t *buf_len) argument 628 size_t buf_len; local [all...] |
H A D | eap_fast_pac.c | 185 size_t buf_len; member in struct:eap_fast_read_ctx 194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) 205 if (len >= rc->buf_len) 206 len = rc->buf_len - 1; 212 rc->buf[rc->buf_len - 1] = '\0'; 258 rc->buf_len = 2048; 259 rc->buf = os_malloc(rc->buf_len); 477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, argument 493 if (*pos - *buf + need > *buf_len) { 494 char *nbuf = os_realloc(*buf, *buf_len 574 eap_fast_add_pac_data(struct eap_fast_pac *pac, char **buf, char **pos, size_t *buf_len) argument 624 size_t buf_len; local [all...] |
H A D | mschapv2.c | 113 const u8 *buf, size_t buf_len) 116 if (buf_len < 2 + 2 * MSCHAPV2_AUTH_RESPONSE_LEN || 112 mschapv2_verify_auth_response(const u8 *auth_response, const u8 *buf, size_t buf_len) argument
|
/freebsd-11-stable/crypto/openssl/crypto/objects/ |
H A D | obj_dat.c | 484 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) argument 493 if (buf && buf_len > 0) 506 BUF_strlcpy(buf, s, buf_len); 560 if (buf && (buf_len > 1)) { 563 buf_len--; 575 if (buf_len > 1) { 578 buf_len--; 580 BUF_strlcpy(buf, bndec, buf_len); 581 if (i > buf_len) { 582 buf += buf_len; [all...] |
/freebsd-11-stable/sys/dev/usb/input/ |
H A D | uep.c | 98 uint8_t buf_len; member in struct:uep_softc 217 if (sc->buf_len > 0) { 220 if (sc->buf_len == 1) 226 res = pkt_len - sc->buf_len; 227 memcpy(sc->buf + sc->buf_len, buf, res); 229 sc->buf_len = 0; 238 sc->buf_len = 1; 253 sc->buf_len = len; 339 sc->buf_len = 0;
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_openbsd.cpp | 62 uptr ReadBinaryName(/*out*/char *buf, uptr buf_len) { argument 69 (KI_MAXCOMLEN < buf_len ? KI_MAXCOMLEN : buf_len),
|
H A D | sanitizer_common.cpp | 243 static uptr ReadProcessName(/*out*/ char *buf, uptr buf_len) { argument 244 ReadLongProcessName(buf, buf_len); 266 uptr ReadBinaryNameCached(/*out*/char *buf, uptr buf_len) { argument 269 name_len = (name_len < buf_len - 1) ? name_len : buf_len - 1; 270 if (buf_len == 0)
|
H A D | sanitizer_rtems.cpp | 245 uptr ReadBinaryName(/*out*/char *buf, uptr buf_len) { argument 246 internal_strncpy(buf, "StubBinaryName", buf_len); 250 uptr ReadLongProcessName(/*out*/ char *buf, uptr buf_len) { argument 251 internal_strncpy(buf, "StubProcessName", buf_len);
|
/freebsd-11-stable/sys/dev/cs/ |
H A D | if_csvar.h | 63 int buf_len; member in struct:cs_softc
|
/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | sha512.h | 19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
|
H A D | sha384.h | 19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
|
H A D | tls_none.c | 206 int tls_get_library_version(char *buf, size_t buf_len) argument 208 return os_snprintf(buf, buf_len, "none");
|
H A D | sha256.h | 19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
|
/freebsd-11-stable/crypto/openssl/crypto/ |
H A D | mem_dbg.c | 683 int buf_len; local 692 buf_len = strlen(buf); 694 if (128 - buf_len - 3 < info_len) { 695 memcpy(buf + buf_len, amip->info, 128 - buf_len - 3); 696 buf_len = 128 - 3; 698 BUF_strlcpy(buf + buf_len, amip->info, sizeof(buf) - buf_len); 699 buf_len = strlen(buf); 701 BIO_snprintf(buf + buf_len, sizeo [all...] |
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | json.c | 68 size_t max_len, buf_len; local 74 buf_len = max_len > 10 ? 10 : max_len; 75 str = os_malloc(buf_len); 79 s_end = str + buf_len; 82 if (buf_len < max_len && s_end - spos < 3) { 87 buf_len *= 2; 88 if (buf_len > max_len) 89 buf_len = max_len; 90 tmp = os_realloc(str, buf_len); 95 s_end = str + buf_len; [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | ssh-pkcs11-helper.c | 214 u_int buf_len; local 219 buf_len = buffer_len(&iqueue); 220 if (buf_len < 5) 228 if (buf_len < msg_len + 4) 231 buf_len -= 4; 251 if (buf_len < buffer_len(&iqueue)) { 255 consumed = buf_len - buffer_len(&iqueue);
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 102 static int p2p_sd_dns_uncompress(char *buf, size_t buf_len, const u8 *msg, argument 112 if (buf_len < 2) 129 uend = buf + buf_len; 699 size_t buf_len; local 704 buf_len = 2 * tlvs_len + 1; 705 buf = os_malloc(buf_len); 707 wpa_snprintf_hex(buf, buf_len, tlvs, tlvs_len); 826 size_t buf_len; local 854 buf_len = WPA_GET_LE16(pos); 858 if (buf_len > (unsigne 896 size_t buf_len; local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Darwin/ |
H A D | NativeThreadListDarwin.h | 50 nub_size_t GetRegisterContext (nub_thread_t tid, void *buf, size_t buf_len); 51 nub_size_t SetRegisterContext (nub_thread_t tid, const void *buf, size_t buf_len);
|
/freebsd-11-stable/crypto/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 423 size_t buf_len = 0; local 445 update_buflen(x->p, &buf_len); 446 update_buflen(x->q, &buf_len); 447 update_buflen(x->g, &buf_len); 448 update_buflen(priv_key, &buf_len); 449 update_buflen(pub_key, &buf_len); 451 m = (unsigned char *)OPENSSL_malloc(buf_len + 10); 549 size_t buf_len = 0; local 551 update_buflen(dsa_sig->r, &buf_len); 552 update_buflen(dsa_sig->s, &buf_len); [all...] |
/freebsd-11-stable/sys/contrib/cloudabi/ |
H A D | cloudabi64_types.h | 48 _Alignas(8) uint64_t buf_len; member in struct:__anon5529 51 _Static_assert(offsetof(cloudabi64_ciovec_t, buf_len) == 8, "Incorrect layout"); 57 _Alignas(8) uint64_t buf_len; member in struct:__anon5530 60 _Static_assert(offsetof(cloudabi64_iovec_t, buf_len) == 8, "Incorrect layout");
|
H A D | cloudabi32_types.h | 48 _Alignas(4) uint32_t buf_len; member in struct:__anon5512 51 _Static_assert(offsetof(cloudabi32_ciovec_t, buf_len) == 4, "Incorrect layout"); 57 _Alignas(4) uint32_t buf_len; member in struct:__anon5513 60 _Static_assert(offsetof(cloudabi32_iovec_t, buf_len) == 4, "Incorrect layout");
|
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_scalars.c | 183 size_t buf_len = 0; local 186 if (sysctl(mib, 2, NULL, &buf_len, NULL, 0) != 0) { 192 if ((buf = malloc(buf_len)) == NULL) { 196 if (sysctl(mib, 2, buf, &buf_len, NULL, 0)) {
|
/freebsd-11-stable/crypto/heimdal/lib/gssapi/spnego/ |
H A D | init_sec_context.c | 199 size_t buf_size, buf_len; local 315 &ni, &buf_len); 316 if (ret == 0 && ni_len != buf_len) 322 ret = der_put_length_and_tag(buf + buf_size - buf_len - 1, 323 buf_size - buf_len, 324 buf_len, 329 if (ret == 0 && tmp + buf_len != buf_size) 395 size_t buf_len = 0; local 552 &ctx->initiator_mech_types, &buf_len, ret); 560 if (mech_buf.length != buf_len) { [all...] |
/freebsd-11-stable/crypto/openssl/crypto/ec/ |
H A D | ec_asn1.c | 1206 size_t buf_len = 0, tmp_len, bn_len; local 1226 buf_len = (EC_GROUP_get_degree(a->group) + 7) / 8; 1228 if (bn_len > buf_len) { 1233 buffer = OPENSSL_malloc(buf_len); 1239 if (!BN_bn2bin(a->priv_key, buffer + buf_len - bn_len)) { 1244 if (buf_len - bn_len > 0) { 1245 memset(buffer, 0, buf_len - bn_len); 1248 if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len)) { 1272 if (tmp_len > buf_len) { 1279 buf_len 1377 size_t buf_len = 0; local [all...] |