| /freebsd/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | decapsulate.c | 43 size_t total_len, in _gsskrb5_get_mech() argument 50 if (total_len < 1) in _gsskrb5_get_mech() 54 e = der_get_length (p, total_len - 1, &len, &len_len); in _gsskrb5_get_mech() 55 if (e || 1 + len_len + len != total_len) in _gsskrb5_get_mech() 57 if (total_len < 1 + len_len + 1) in _gsskrb5_get_mech() 62 e = der_get_length (p, total_len - 1 - len_len - 1, in _gsskrb5_get_mech() 73 size_t total_len, in _gssapi_verify_mech_header() argument 79 mech_len = _gsskrb5_get_mech (*str, total_len, &p); in _gssapi_verify_mech_header() 85 if (mech_len > total_len) in _gssapi_verify_mech_header() 87 if (p - *str > total_len - mech_len) in _gssapi_verify_mech_header() [all …]
|
| H A D | wrap.c | 121 size_t len, total_len; in sub_wrap_size() local 125 _gsskrb5_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); in sub_wrap_size() 127 total_len -= req_output_size; /* token length */ in sub_wrap_size() 128 if (total_len < req_output_size) { in sub_wrap_size() 129 *max_input_size = (req_output_size - total_len); in sub_wrap_size() 219 size_t len, total_len, padlength, datalen; in wrap_des() local 225 _gsskrb5_encap_length (len, &len, &total_len, GSS_KRB5_MECHANISM); in wrap_des() 226 total_len += datalen; in wrap_des() 232 _gsskrb5_encap_length (len, &len, &total_len, GSS_KRB5_MECHANISM); in wrap_des() 235 output_message_buffer->length = total_len; in wrap_des() [all …]
|
| H A D | arcfour.c | 174 size_t len, total_len; in _gssapi_get_mic_arcfour() local 178 _gsskrb5_encap_length (22, &len, &total_len, GSS_KRB5_MECHANISM); in _gssapi_get_mic_arcfour() 180 message_token->length = total_len; in _gssapi_get_mic_arcfour() 181 message_token->value = malloc (total_len); in _gssapi_get_mic_arcfour() 366 size_t len, total_len, datalen; in _gssapi_wrap_arcfour() local 378 _gssapi_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); in _gssapi_wrap_arcfour() 379 total_len += datalen; in _gssapi_wrap_arcfour() 383 _gssapi_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); in _gssapi_wrap_arcfour() 386 output_message_buffer->length = total_len; in _gssapi_wrap_arcfour() 387 output_message_buffer->value = malloc (total_len); in _gssapi_wrap_arcfour() [all …]
|
| H A D | get_mic.c | 57 size_t len, total_len; in mic_des() local 59 _gsskrb5_encap_length (22, &len, &total_len, GSS_KRB5_MECHANISM); in mic_des() 61 message_token->length = total_len; in mic_des() 62 message_token->value = malloc (total_len); in mic_des() 158 size_t len, total_len; in mic_des3() local 166 _gsskrb5_encap_length (36, &len, &total_len, GSS_KRB5_MECHANISM); in mic_des3() 168 message_token->length = total_len; in mic_des3() 169 message_token->value = malloc (total_len); in mic_des3()
|
| H A D | encapsulate.c | 39 size_t *total_len, in _gssapi_encap_length() argument 48 *total_len = 1 + len_len + *len; in _gssapi_encap_length() 54 size_t *total_len, in _gsskrb5_encap_length() argument 57 _gssapi_encap_length(data_len + 2, len, total_len, mech); in _gsskrb5_encap_length()
|
| /freebsd/contrib/elftoolchain/libdwarf/ |
| H A D | libdwarf_loclist.c | 34 Dwarf_Unsigned *total_len, Dwarf_Error *error) in _dwarf_loclist_add_locdesc() argument 39 if (total_len != NULL) in _dwarf_loclist_add_locdesc() 40 *total_len = 0; in _dwarf_loclist_add_locdesc() 50 if (total_len != NULL) in _dwarf_loclist_add_locdesc() 51 *total_len += 2 * cu->cu_pointer_size; in _dwarf_loclist_add_locdesc() 72 if (total_len != NULL) in _dwarf_loclist_add_locdesc() 73 *total_len += len; in _dwarf_loclist_add_locdesc()
|
| /freebsd/contrib/flex/src/ |
| H A D | tables.c | 193 flex_int32_t i, total_len; in yytbl_data_fwrite() local 212 total_len = yytbl_calc_total_len (td); in yytbl_data_fwrite() 213 for (i = 0; i < total_len; i++) { in yytbl_data_fwrite() 235 if (bwritten != (12 + total_len * (int) YYTDFLAGS2BYTES (td->td_flags))) { in yytbl_data_fwrite() 430 flex_int32_t i, total_len; in min_int_size() local 433 total_len = yytbl_calc_total_len (tbl); in min_int_size() 435 for (i = 0; i < total_len; i++) { in min_int_size() 463 flex_int32_t i, total_len; in yytbl_data_compress() local 484 total_len = yytbl_calc_total_len (tbl); in yytbl_data_compress() 485 newtbl.td_data = calloc ((size_t) total_len, newsz); in yytbl_data_compress() [all …]
|
| /freebsd/contrib/wpa/src/crypto/ |
| H A D | aes-omac1.c | 49 size_t i, e, left, total_len; in omac1_aes_vector() local 59 total_len = 0; in omac1_aes_vector() 61 total_len += len[e]; in omac1_aes_vector() 62 left = total_len; in omac1_aes_vector() 93 if (left || total_len == 0) { in omac1_aes_vector()
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | ndef.c | 118 size_t total_len; in ndef_build_record() local 125 total_len = 2; /* flag + type length */ in ndef_build_record() 127 total_len += short_record ? sizeof(u8) : sizeof(u32); in ndef_build_record() 129 total_len += 1; in ndef_build_record() 130 total_len += type_length + id_length + payload_length; in ndef_build_record() 131 record = wpabuf_alloc(total_len); in ndef_build_record()
|
| /freebsd/sys/netinet/ |
| H A D | sctp_bsd_addr.c | 393 int total_len; in sctp_packet_log() local 403 total_len = SCTP_SIZE32((length + (4 * sizeof(int)))); in sctp_packet_log() 405 if (total_len > SCTP_PACKET_LOG_SIZE) { in sctp_packet_log() 419 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log() 423 thisend = total_len; in sctp_packet_log() 433 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log() 437 thisend = total_len; in sctp_packet_log() 458 *lenat = total_len; in sctp_packet_log()
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_sstream.c | 97 size_t num_iov_ = 0, src_len = 0, total_len = 0, i; in ossl_quic_sstream_get_stream_frame() local 134 if (total_len >= max_len) in ossl_quic_sstream_get_stream_frame() 138 range->range.start + total_len, in ossl_quic_sstream_get_stream_frame() 147 if (total_len + src_len > max_len) in ossl_quic_sstream_get_stream_frame() 148 src_len = (size_t)(max_len - total_len); in ossl_quic_sstream_get_stream_frame() 153 total_len += src_len; in ossl_quic_sstream_get_stream_frame() 158 hdr->len = total_len; in ossl_quic_sstream_get_stream_frame()
|
| /freebsd/crypto/krb5/src/lib/crypto/krb/ |
| H A D | encrypt.c | 38 unsigned int header_len, padding_len, trailer_len, total_len; in krb5_k_encrypt() local 52 total_len = header_len + input->length + padding_len + trailer_len; in krb5_k_encrypt() 53 if (output->ciphertext.length < total_len) in krb5_k_encrypt() 76 output->ciphertext.length = total_len; in krb5_k_encrypt()
|
| /freebsd/lib/libiscsiutil/ |
| H A D | pdu.c | 176 ssize_t ret, total_len; in pdu_send() local 189 total_len = iov[0].iov_len; in pdu_send() 195 total_len += iov[1].iov_len; in pdu_send() 203 total_len += iov[2].iov_len; in pdu_send() 214 if (ret != total_len) in pdu_send()
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_helper.c | 596 uint32_t total_len = 0; in dbg_get_capabilities_str() local 605 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 611 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 617 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 623 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 629 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 635 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 641 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 647 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() 653 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath10k/ |
| H A D | wow.c | 89 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local 139 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 141 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 142 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 143 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211() 144 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211() 147 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211() 159 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 163 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 166 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | buffer.c | 326 buf->total_len += chain->off; in evbuffer_chain_insert() 487 new_size = buffer->total_len; in evbuffer_run_callbacks() 613 result = (buffer->total_len); in evbuffer_get_length() 783 buf->total_len += added; in evbuffer_commit_space() 806 dst->total_len = 0; in ZERO_CHAIN() 871 src->total_len = 0; in RESTORE_PINNED() 885 dst->total_len = src->total_len; in COPY_CHAIN() 904 dst->total_len += src->total_len; in APPEND_CHAIN() 954 dst->total_len += src->total_len; in PREPEND_CHAIN() 973 in_total_len = inbuf->total_len; in evbuffer_add_buffer() [all …]
|
| H A D | buffer_iocp.c | 130 evbuf->total_len += nBytes; in evbuffer_commit_read_() 190 if (!buf->total_len) { in evbuffer_launch_write_() 194 } else if (at_most < 0 || (size_t)at_most > buf->total_len) { in evbuffer_launch_write_() 195 at_most = buf->total_len; in evbuffer_launch_write_()
|
| /freebsd/contrib/libevent/ |
| H A D | buffer.c | 326 buf->total_len += chain->off; in evbuffer_chain_insert() 487 new_size = buffer->total_len; in evbuffer_run_callbacks() 613 result = (buffer->total_len); in evbuffer_get_length() 783 buf->total_len += added; in evbuffer_commit_space() 806 dst->total_len = 0; in ZERO_CHAIN() 871 src->total_len = 0; in RESTORE_PINNED() 885 dst->total_len = src->total_len; in COPY_CHAIN() 904 dst->total_len += src->total_len; in APPEND_CHAIN() 954 dst->total_len += src->total_len; in PREPEND_CHAIN() 973 in_total_len = inbuf->total_len; in evbuffer_add_buffer() [all …]
|
| /freebsd/tests/atf_python/sys/netpfil/ipfw/ |
| H A D | ipfw.py | 80 debug_type, hdr.total_len, hdr.opt_name 100 data = sys.stdin.buffer.read(hdr.total_len) 108 ret.append(self.parse_record(data[off : off + hdr.total_len])) 109 off += hdr.total_len
|
| /freebsd/sys/dev/netmap/ |
| H A D | if_re_netmap.h | 210 uint32_t total_len; in re_netmap_rxsync() local 214 total_len = rxstat & sc->rl_rxlenmask; in re_netmap_rxsync() 216 total_len = (total_len < 4) ? 0 : total_len - 4; in re_netmap_rxsync() 217 ring->slot[nm_i].len = total_len; in re_netmap_rxsync()
|
| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p_build.c | 485 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() argument 496 if (info_len + *total_len > MAX_SVC_ADV_LEN) { in p2p_buf_add_service_info() 594 *total_len += info_len; in p2p_buf_add_service_info() 595 WPA_PUT_LE16(attr_len, (u16) *total_len); in p2p_buf_add_service_info() 606 size_t total_len; in p2p_buf_add_service_instance() local 629 total_len = 0; in p2p_buf_add_service_instance() 633 WPA_PUT_LE16(attr_len, (u16) total_len); in p2p_buf_add_service_instance() 640 &ie_len, &pos, &total_len, attr_len); in p2p_buf_add_service_instance() 644 for (adv = adv_list; adv && total_len <= MAX_SVC_ADV_LEN; in p2p_buf_add_service_instance() 657 &total_len, in p2p_buf_add_service_instance() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | wow.c | 162 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211() local 218 if (total_len > ETH_HLEN) in ath11k_wow_convert_8023_to_80211() 220 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211() 221 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211() 222 else if (total_len > ETH_ALEN) in ath11k_wow_convert_8023_to_80211() 223 hdr_80211_end_offset = total_len - ETH_ALEN + in ath11k_wow_convert_8023_to_80211() 226 hdr_80211_end_offset = total_len + in ath11k_wow_convert_8023_to_80211() 238 if (total_len > ETH_HLEN) { in ath11k_wow_convert_8023_to_80211() 242 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211() 245 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211() [all …]
|
| /freebsd/sys/ddb/ |
| H A D | db_textdump.c | 334 u_int i, len, offset, seq, total_len; in textdump_dump_msgbuf() local 350 total_len = 0; in textdump_dump_msgbuf() 363 total_len += offset; in textdump_dump_msgbuf() 367 total_len += offset; /* Without the zero-padding. */ in textdump_dump_msgbuf() 380 total_len); in textdump_dump_msgbuf()
|
| /freebsd/crypto/heimdal/lib/hx509/ |
| H A D | name.c | 122 append_string(char **str, size_t *total_len, const char *ss, in append_string() argument 132 s = realloc(*str, len + *total_len + 1); in append_string() 135 memcpy(s + *total_len, qs, len); in append_string() 138 s[*total_len + len] = '\0'; in append_string() 140 *total_len += len; in append_string() 203 size_t total_len = 0; in _hx509_Name_to_string() local 285 append_string(str, &total_len, oidname, strlen(oidname), 0); in _hx509_Name_to_string() 287 append_string(str, &total_len, "=", 1, 0); in _hx509_Name_to_string() 288 append_string(str, &total_len, ss, len, 1); in _hx509_Name_to_string() 295 append_string(str, &total_len, "+", 1, 0); in _hx509_Name_to_string() [all …]
|
| /freebsd/contrib/wpa/src/drivers/ |
| H A D | driver_nl80211_android.c | 27 int total_len; member 59 priv_cmd.total_len = sizeof(buf); in android_priv_cmd() 129 priv_cmd.total_len = bp; in android_pno_start()
|