Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 104) sorted by relevance

12345

/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Ddecapsulate.c43 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 Dwrap.c121 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 Darcfour.c174 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 Dget_mic.c57 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 Dencapsulate.c39 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 Dlibdwarf_loclist.c34 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 Dtables.c193 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 Daes-omac1.c49 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 Dndef.c118 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/lib/libc/gen/
H A Delf_utils.c108 size_t total_len) in __libc_distribute_static_tls() argument
114 memset((char *)tlsbase + len, 0, total_len - len); in __libc_distribute_static_tls()
120 size_t total_len) in __pthread_distribute_static_tls() argument
124 INTERPOS_distribute_static_tls])(offset, src, len, total_len); in __pthread_distribute_static_tls()
/freebsd/sys/netinet/
H A Dsctp_bsd_addr.c391 int total_len; in sctp_packet_log() local
401 total_len = SCTP_SIZE32((length + (4 * sizeof(int)))); in sctp_packet_log()
403 if (total_len > SCTP_PACKET_LOG_SIZE) { in sctp_packet_log()
417 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
421 thisend = total_len; in sctp_packet_log()
431 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
435 thisend = total_len; in sctp_packet_log()
456 *lenat = total_len; in sctp_packet_log()
/freebsd/lib/libiscsiutil/
H A Dpdu.c176 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 Dosm_helper.c596 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 Dwow.c88 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local
138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211()
140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
141 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
142 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211()
143 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211()
146 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211()
158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211()
162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211()
165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dbuffer.c326 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 Dbuffer_iocp.c130 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 Dbuffer.c326 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 Dbuffer_iocp.c130 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/tests/atf_python/sys/netpfil/ipfw/
H A Dipfw.py80 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/lib/libthr/thread/
H A Dthr_list.c368 size_t total_len) in thr_distribute_static_tls() argument
372 memset((char *)tlsbase + len, 0, total_len - len); in thr_distribute_static_tls()
377 size_t total_len) in __pthread_distribute_static_tls() argument
384 thr_distribute_static_tls(tlsbase, src, len, total_len); in __pthread_distribute_static_tls()
391 thr_distribute_static_tls(tlsbase, src, len, total_len); in __pthread_distribute_static_tls()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dwow.c159 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211() local
209 if (total_len > ETH_HLEN) in ath11k_wow_convert_8023_to_80211()
211 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
212 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211()
213 else if (total_len > ETH_ALEN) in ath11k_wow_convert_8023_to_80211()
214 hdr_80211_end_offset = total_len - ETH_ALEN + in ath11k_wow_convert_8023_to_80211()
217 hdr_80211_end_offset = total_len + in ath11k_wow_convert_8023_to_80211()
229 if (total_len > ETH_HLEN) { in ath11k_wow_convert_8023_to_80211()
233 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
236 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
[all …]
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_build.c485 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/dev/netmap/
H A Dif_re_netmap.h210 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/sys/ddb/
H A Ddb_textdump.c334 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 Dname.c122 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 …]

12345