| /trueos/crypto/heimdal/lib/gssapi/krb5/ |
| HD | 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() 60 e = der_get_length (p, total_len - 1 - len_len - 1, in _gsskrb5_get_mech() 71 size_t total_len, in _gssapi_verify_mech_header() argument 77 mech_len = _gsskrb5_get_mech (*str, total_len, &p); in _gssapi_verify_mech_header() 94 size_t total_len, in _gsskrb5_verify_header() argument 102 ret = _gssapi_verify_mech_header(str, total_len, oid); in _gsskrb5_verify_header() 106 len = total_len - (*str - p); in _gsskrb5_verify_header()
|
| HD | 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 …]
|
| HD | 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() 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 …]
|
| HD | 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() 148 size_t len, total_len; in mic_des3() local 156 _gsskrb5_encap_length (36, &len, &total_len, GSS_KRB5_MECHANISM); in mic_des3() 158 message_token->length = total_len; in mic_des3() 159 message_token->value = malloc (total_len); in mic_des3()
|
| HD | 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()
|
| /trueos/contrib/flex/ |
| HD | tables.c | 194 flex_int32_t i, total_len; in yytbl_data_fwrite() local 213 total_len = yytbl_calc_total_len (td); in yytbl_data_fwrite() 214 for (i = 0; i < total_len; i++) { in yytbl_data_fwrite() 236 if (bwritten != (int) (12 + total_len * YYTDFLAGS2BYTES (td->td_flags))) { in yytbl_data_fwrite() 431 flex_uint32_t i, total_len; in min_int_size() local 434 total_len = yytbl_calc_total_len (tbl); in min_int_size() 436 for (i = 0; i < total_len; i++) { in min_int_size() 464 flex_int32_t i, newsz, total_len; in yytbl_data_compress() local 484 total_len = yytbl_calc_total_len (tbl); in yytbl_data_compress() 485 newtbl.td_data = calloc (total_len, newsz); in yytbl_data_compress() [all …]
|
| /trueos/contrib/ofed/management/opensm/opensm/ |
| HD | osm_helper.c | 569 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 …]
|
| /trueos/contrib/wpa/src/crypto/ |
| HD | aes-omac1.c | 48 size_t i, e, left, total_len; in omac1_aes_128_vector() local 55 total_len = 0; in omac1_aes_128_vector() 57 total_len += len[e]; in omac1_aes_128_vector() 58 left = total_len; in omac1_aes_128_vector() 82 if (left || total_len == 0) { in omac1_aes_128_vector()
|
| /trueos/sys/netinet/ |
| HD | sctp_bsd_addr.c | 420 int total_len; in sctp_packet_log() local 430 total_len = SCTP_SIZE32((length + (4 * sizeof(int)))); in sctp_packet_log() 432 if (total_len > SCTP_PACKET_LOG_SIZE) { in sctp_packet_log() 446 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log() 450 thisend = total_len; in sctp_packet_log() 460 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log() 464 thisend = total_len; in sctp_packet_log() 486 *lenat = total_len; in sctp_packet_log()
|
| /trueos/contrib/groff/src/utils/lkbib/ |
| HD | lkbib.cpp | 111 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()
|
| /trueos/contrib/wpa/src/wps/ |
| HD | ndef.c | 105 size_t total_len; in ndef_build_record() local 112 total_len = 2; /* flag + type length */ in ndef_build_record() 114 total_len += short_record ? sizeof(u8) : sizeof(u32); in ndef_build_record() 116 total_len += 1; in ndef_build_record() 117 total_len += type_length + id_length + payload_length; in ndef_build_record() 118 record = wpabuf_alloc(total_len); in ndef_build_record()
|
| /trueos/usr.sbin/ctld/ |
| HD | pdu.c | 214 ssize_t ret, total_len; in pdu_send() local 230 total_len = iov[0].iov_len; in pdu_send() 236 total_len += iov[1].iov_len; in pdu_send() 244 total_len += iov[2].iov_len; in pdu_send() 255 if (ret != total_len) in pdu_send()
|
| /trueos/sys/cam/ctl/ |
| HD | ctl_tpc.c | 441 int alloc_len, total_len; in ctl_receive_copy_operating_parameters() local 449 total_len = sizeof(*data) + 4; in ctl_receive_copy_operating_parameters() 452 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_receive_copy_operating_parameters() 456 if (total_len < alloc_len) { in ctl_receive_copy_operating_parameters() 457 ctsio->residual = alloc_len - total_len; in ctl_receive_copy_operating_parameters() 458 ctsio->kern_data_len = total_len; in ctl_receive_copy_operating_parameters() 459 ctsio->kern_total_len = total_len; in ctl_receive_copy_operating_parameters() 520 int alloc_len, total_len; in ctl_receive_copy_status_lid1() local 549 total_len = sizeof(*data); in ctl_receive_copy_status_lid1() 552 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_receive_copy_status_lid1() [all …]
|
| /trueos/usr.sbin/iscsid/ |
| HD | pdu.c | 247 ssize_t ret, total_len; in pdu_send() local 263 total_len = iov[0].iov_len; in pdu_send() 269 total_len += iov[1].iov_len; in pdu_send() 277 total_len += iov[2].iov_len; in pdu_send() 288 if (ret != total_len) in pdu_send()
|
| /trueos/contrib/subversion/subversion/libsvn_subr/ |
| HD | path.c | 155 apr_size_t total_len; in svn_path_join_many() local 165 total_len = strlen(base); in svn_path_join_many() 169 if (total_len == 1 && *base == '/') in svn_path_join_many() 173 total_len = sizeof(SVN_EMPTY_PATH) - 1; in svn_path_join_many() 177 saved_lengths[0] = total_len; in svn_path_join_many() 199 total_len = len; in svn_path_join_many() 215 total_len = 0; in svn_path_join_many() 217 total_len += len; in svn_path_join_many() 221 total_len += 1 + len; in svn_path_join_many() 227 if (base_is_root && total_len == 1) in svn_path_join_many() [all …]
|
| /trueos/sys/dev/netmap/ |
| HD | if_re_netmap.h | 213 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()
|
| /trueos/contrib/binutils/libiberty/ |
| HD | floatformat.c | 261 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()
|
| /trueos/contrib/gcclibs/libiberty/ |
| HD | floatformat.c | 261 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()
|
| /trueos/sys/ddb/ |
| HD | db_textdump.c | 333 u_int i, len, offset, seq, total_len; in textdump_dump_msgbuf() local 349 total_len = 0; in textdump_dump_msgbuf() 362 total_len += offset; in textdump_dump_msgbuf() 366 total_len += offset; /* Without the zero-padding. */ in textdump_dump_msgbuf() 379 total_len); in textdump_dump_msgbuf()
|
| /trueos/contrib/apr-util/buckets/ |
| HD | apr_brigade.c | 495 apr_size_t total_len; in apr_brigade_writev() local 501 total_len = 0; in apr_brigade_writev() 503 total_len += vec[i].iov_len; in apr_brigade_writev() 509 if (total_len > APR_BUCKET_BUFF_SIZE) { in apr_brigade_writev() 543 if (remaining >= total_len) { in apr_brigade_writev() 552 e->length += total_len; in apr_brigade_writev() 572 total_len -= (buf - start_buf); in apr_brigade_writev() 603 e->length = total_len; in apr_brigade_writev()
|
| /trueos/sys/ofed/drivers/infiniband/hw/mlx4/ |
| HD | mr.c | 330 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()
|
| /trueos/crypto/heimdal/lib/hx509/ |
| HD | 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 …]
|
| /trueos/sys/dev/ed/ |
| HD | if_ed_hpp.c | 560 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()
|
| /trueos/share/examples/scsi_target/ |
| HD | scsi_cmds.c | 565 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()
|
| /trueos/contrib/gdb/gdb/ |
| HD | doublest.c | 51 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()
|