Home
last modified time | relevance | path

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

123

/freebsd-9-stable/crypto/heimdal/lib/gssapi/krb5/
Ddecapsulate.c45 size_t total_len, in _gsskrb5_get_mech() argument
52 if (total_len < 1) in _gsskrb5_get_mech()
56 e = der_get_length (p, total_len - 1, &len, &len_len); in _gsskrb5_get_mech()
57 if (e || 1 + len_len + len != total_len) 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()
96 size_t total_len, in _gsskrb5_verify_header() argument
104 ret = _gssapi_verify_mech_header(str, total_len, oid); in _gsskrb5_verify_header()
108 len = total_len - (*str - p); in _gsskrb5_verify_header()
Darcfour.c176 size_t len, total_len; in _gssapi_get_mic_arcfour() local
180 _gsskrb5_encap_length (22, &len, &total_len, GSS_KRB5_MECHANISM); in _gssapi_get_mic_arcfour()
182 message_token->length = total_len; in _gssapi_get_mic_arcfour()
183 message_token->value = malloc (total_len); in _gssapi_get_mic_arcfour()
356 size_t len, total_len, datalen; in _gssapi_wrap_arcfour() local
368 _gssapi_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); in _gssapi_wrap_arcfour()
369 total_len += datalen; in _gssapi_wrap_arcfour()
373 _gssapi_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); in _gssapi_wrap_arcfour()
376 output_message_buffer->length = total_len; in _gssapi_wrap_arcfour()
377 output_message_buffer->value = malloc (total_len); in _gssapi_wrap_arcfour()
[all …]
Dwrap.c123 size_t len, total_len; in sub_wrap_size() local
127 _gsskrb5_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); in sub_wrap_size()
129 total_len -= req_output_size; /* token length */ in sub_wrap_size()
130 if (total_len < req_output_size) { in sub_wrap_size()
131 *max_input_size = (req_output_size - total_len); in sub_wrap_size()
211 size_t len, total_len, padlength, datalen; in wrap_des() local
216 _gsskrb5_encap_length (len, &len, &total_len, GSS_KRB5_MECHANISM); in wrap_des()
218 output_message_buffer->length = total_len; in wrap_des()
219 output_message_buffer->value = malloc (total_len); in wrap_des()
333 size_t len, total_len, padlength, datalen; in wrap_des3() local
[all …]
Dget_mic.c56 size_t len, total_len; in mic_des() local
58 _gsskrb5_encap_length (22, &len, &total_len, GSS_KRB5_MECHANISM); in mic_des()
60 message_token->length = total_len; in mic_des()
61 message_token->value = malloc (total_len); in mic_des()
143 size_t len, total_len; in mic_des3() local
151 _gsskrb5_encap_length (36, &len, &total_len, GSS_KRB5_MECHANISM); in mic_des3()
153 message_token->length = total_len; in mic_des3()
154 message_token->value = malloc (total_len); in mic_des3()
Dencapsulate.c41 size_t *total_len, in _gssapi_encap_length() argument
50 *total_len = 1 + len_len + *len; in _gssapi_encap_length()
56 size_t *total_len, in _gsskrb5_encap_length() argument
59 _gssapi_encap_length(data_len + 2, len, total_len, mech); in _gsskrb5_encap_length()
/freebsd-9-stable/contrib/ofed/management/opensm/opensm/
Dosm_helper.c569 uint32_t total_len = 0; in dbg_get_capabilities_str() local
578 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
584 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
590 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
596 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
602 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
608 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
614 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
620 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
626 &total_len) != IB_SUCCESS) in dbg_get_capabilities_str()
[all …]
/freebsd-9-stable/contrib/wpa/src/crypto/
Daes-omac1.c54 size_t i, e, left, total_len; in omac1_aes_128_vector() local
61 total_len = 0; in omac1_aes_128_vector()
63 total_len += len[e]; in omac1_aes_128_vector()
64 left = total_len; in omac1_aes_128_vector()
88 if (left || total_len == 0) { in omac1_aes_128_vector()
/freebsd-9-stable/contrib/wpa/src/wps/
Dndef.c110 size_t total_len; in ndef_build_record() local
116 total_len = 2; /* flag + type length */ in ndef_build_record()
118 total_len += short_record ? sizeof(u8) : sizeof(u32); in ndef_build_record()
120 total_len += 1; in ndef_build_record()
121 total_len += type_length + id_length + payload_length; in ndef_build_record()
122 record = wpabuf_alloc(total_len); in ndef_build_record()
/freebsd-9-stable/sys/netinet/
Dsctp_bsd_addr.c422 int total_len; in sctp_packet_log() local
432 total_len = SCTP_SIZE32((length + (4 * sizeof(int)))); in sctp_packet_log()
434 if (total_len > SCTP_PACKET_LOG_SIZE) { in sctp_packet_log()
448 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
452 thisend = total_len; in sctp_packet_log()
462 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
466 thisend = total_len; in sctp_packet_log()
488 *lenat = total_len; in sctp_packet_log()
/freebsd-9-stable/contrib/groff/src/utils/lkbib/
Dlkbib.cpp111 int total_len = 0; in main() local
114 total_len += strlen(argv[i]); in main()
115 total_len += argc - optind - 1 + 1; // for spaces and '\0' in main()
116 char *buffer = new char[total_len]; in main()
/freebsd-9-stable/sys/ofed/drivers/net/mlx4/
Den_frag.c94 iph->ip_len = htons(session->total_len); in flush_session()
115 session->total_len += data_len; in frag_append()
150 if (unlikely(session->offset + session->total_len != in mlx4_en_rx_frags()
152 session->total_len + mb->m_pkthdr.len > 65536)) { in mlx4_en_rx_frags()
168 session->total_len = ip_len; in mlx4_en_rx_frags()
/freebsd-9-stable/contrib/ntp/sntp/libevent/
Dbuffer.c325 buf->total_len += chain->off; in evbuffer_chain_insert()
486 new_size = buffer->total_len; in evbuffer_run_callbacks()
612 result = (buffer->total_len); in evbuffer_get_length()
778 buf->total_len += added; in evbuffer_commit_space()
801 dst->total_len = 0; in ZERO_CHAIN()
866 src->total_len = 0; in RESTORE_PINNED()
880 dst->total_len = src->total_len; in COPY_CHAIN()
894 dst->total_len += src->total_len; in APPEND_CHAIN()
944 dst->total_len += src->total_len; in PREPEND_CHAIN()
963 in_total_len = inbuf->total_len; in evbuffer_add_buffer()
[all …]
Dbuffer_iocp.c129 evbuf->total_len += nBytes; in evbuffer_commit_read_()
189 if (!buf->total_len) { in evbuffer_launch_write_()
193 } else if (at_most < 0 || (size_t)at_most > buf->total_len) { in evbuffer_launch_write_()
194 at_most = buf->total_len; in evbuffer_launch_write_()
/freebsd-9-stable/crypto/heimdal/lib/hx509/
Dname.c117 append_string(char **str, size_t *total_len, const char *ss, in append_string() argument
127 s = realloc(*str, len + *total_len + 1); in append_string()
130 memcpy(s + *total_len, qs, len); in append_string()
133 s[*total_len + len] = '\0'; in append_string()
135 *total_len += len; in append_string()
197 size_t total_len = 0; in _hx509_Name_to_string() local
261 append_string(str, &total_len, oidname, strlen(oidname), 0); in _hx509_Name_to_string()
263 append_string(str, &total_len, "=", 1, 0); in _hx509_Name_to_string()
265 append_string(str, &total_len, ss, len, 1); in _hx509_Name_to_string()
273 append_string(str, &total_len, "+", 1, 0); in _hx509_Name_to_string()
[all …]
/freebsd-9-stable/sys/ddb/
Ddb_textdump.c320 u_int i, len, offset, seq, total_len; in textdump_dump_msgbuf() local
336 total_len = 0; in textdump_dump_msgbuf()
349 total_len += offset; in textdump_dump_msgbuf()
353 total_len += offset; /* Without the zero-padding. */ in textdump_dump_msgbuf()
366 total_len); in textdump_dump_msgbuf()
/freebsd-9-stable/contrib/gcclibs/libiberty/
Dfloatformat.c261 unsigned int total_len, unsigned int start, unsigned int len) in get_field() argument
269 start = total_len - (start + len); in get_field()
275 cur_byte = (total_len - start - 1) / FLOATFORMAT_CHAR_BIT; in get_field()
425 unsigned int total_len, unsigned int start, unsigned int len, in put_field() argument
433 start = total_len - (start + len); in put_field()
439 cur_byte = (total_len - start - 1) / FLOATFORMAT_CHAR_BIT; in put_field()
/freebsd-9-stable/sys/dev/netmap/
Dif_re_netmap.h213 uint32_t total_len; in re_netmap_rxsync() local
217 total_len = rxstat & sc->rl_rxlenmask; in re_netmap_rxsync()
219 total_len = (total_len < 4) ? 0 : total_len - 4; in re_netmap_rxsync()
220 ring->slot[nm_i].len = total_len; in re_netmap_rxsync()
/freebsd-9-stable/contrib/binutils/libiberty/
Dfloatformat.c261 unsigned int total_len, unsigned int start, unsigned int len) in get_field() argument
269 start = total_len - (start + len); in get_field()
275 cur_byte = (total_len - start - 1) / FLOATFORMAT_CHAR_BIT; in get_field()
425 unsigned int total_len, unsigned int start, unsigned int len, in put_field() argument
433 start = total_len - (start + len); in put_field()
439 cur_byte = (total_len - start - 1) / FLOATFORMAT_CHAR_BIT; in put_field()
/freebsd-9-stable/sys/ofed/drivers/infiniband/hw/mlx4/
Dmr.c330 u64 total_len = 0; in mlx4_ib_umem_calc_optimal_mtt_size() local
390 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size()
410 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size()
412 total_len += (first_block_start & ((1ULL<<block_shift)-1ULL)); in mlx4_ib_umem_calc_optimal_mtt_size()
415 total_len += (last_block_aligned_end - last_block_end); in mlx4_ib_umem_calc_optimal_mtt_size()
417 WARN((total_len & ((1ULL<<block_shift)-1ULL)), in mlx4_ib_umem_calc_optimal_mtt_size()
419 (long long)total_len, (long long)block_shift); in mlx4_ib_umem_calc_optimal_mtt_size()
421 *num_of_mtts = total_len >> block_shift; in mlx4_ib_umem_calc_optimal_mtt_size()
/freebsd-9-stable/sys/dev/ed/
Dif_ed_hpp.c560 unsigned short total_len; in ed_hpp_write_mbufs() local
585 total_len = 0; in ed_hpp_write_mbufs()
589 total_len += (len = m->m_len); in ed_hpp_write_mbufs()
633 total_len += (len = m->m_len); in ed_hpp_write_mbufs()
673 return (total_len); in ed_hpp_write_mbufs()
/freebsd-9-stable/share/examples/scsi_target/
Dscsi_cmds.c565 a_descr->total_len = count * sector_size; in tcmd_rdwr_decode()
566 if (a_descr->total_len == 0) { in tcmd_rdwr_decode()
596 ctio->dxfer_len = a_descr->total_len - a_descr->targ_req; in start_io()
599 ctio->dxfer_len = a_descr->total_len - a_descr->init_req; in start_io()
638 if (a_descr->targ_req == a_descr->total_len) { in start_io()
646 if (a_descr->targ_ack == a_descr->total_len) in start_io()
649 if (a_descr->init_req == a_descr->total_len && in start_io()
696 if (a_descr->init_req == a_descr->total_len) in tcmd_rdwr_done()
/freebsd-9-stable/contrib/gdb/gdb/
Ddoublest.c51 unsigned int total_len, unsigned int start, unsigned int len) in get_field() argument
67 int excess = FLOATFORMAT_CHAR_BIT - (total_len % FLOATFORMAT_CHAR_BIT); in get_field()
68 cur_byte = (total_len / FLOATFORMAT_CHAR_BIT) in get_field()
226 unsigned int total_len, unsigned int start, unsigned int len, in put_field() argument
235 int excess = FLOATFORMAT_CHAR_BIT - (total_len % FLOATFORMAT_CHAR_BIT); in put_field()
236 cur_byte = (total_len / FLOATFORMAT_CHAR_BIT) in put_field()
/freebsd-9-stable/contrib/libucl/src/
Dxxhash.c299 U64 total_len; member
325 state->total_len = 0; in XXH32_resetState()
349 state->total_len += len; in XXH32_update_endian()
422 if (state->total_len >= 16) in XXH32_intermediateDigest_endian()
431 h32 += (U32) state->total_len; in XXH32_intermediateDigest_endian()
/freebsd-9-stable/contrib/bind9/lib/dns/
Dspnego.c695 size_t total_len, in gssapi_verify_mech_header() argument
702 if (total_len < 1U) in gssapi_verify_mech_header()
706 e = der_get_length(p, total_len - 1, &len, &len_len); in gssapi_verify_mech_header()
707 if (e || 1 + len_len + len != total_len) in gssapi_verify_mech_header()
712 e = der_get_length(p, total_len - 1 - len_len - 1, in gssapi_verify_mech_header()
1373 size_t *total_len, in gssapi_encap_length() argument
1382 *total_len = 1 + len_len + *len; in gssapi_encap_length()
1471 size_t total_len, in gssapi_krb5_get_mech() argument
1478 if (total_len < 1U) in gssapi_krb5_get_mech()
1482 e = der_get_length (p, total_len - 1, &len, &len_len); in gssapi_krb5_get_mech()
[all …]
/freebsd-9-stable/contrib/nvi/common/
Dcut.c313 text_init(sp, p, len, total_len) in text_init() argument
316 size_t len, total_len;
324 if ((tp->lb_len = total_len) != 0) {

123