Home
last modified time | relevance | path

Searched refs:msg_len (Results 1 – 25 of 70) sorted by relevance

123

/NextBSD/crypto/openssl/ssl/
HDd1_both.c126 #define RSMBLY_BITMASK_SIZE(msg_len) (((msg_len) + 7) / 8) argument
139 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \ argument
141 OPENSSL_assert((msg_len) > 0); \
143 … if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \
144 if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \
148 # define RSMBLY_BITMASK_PRINT(bitmask, msg_len) { \
150 printf("bitmask: "); for (ii = 0; ii < (msg_len); ii++) \
279 (int)s->d1->w_msg_hdr.msg_len + in dtls1_do_write()
418 l2n3(msg_hdr->msg_len, p); in dtls1_do_write()
421 l2n3(msg_hdr->msg_len, p); in dtls1_do_write()
[all …]
HDd1_srvr.c943 unsigned int msg_len; in dtls1_send_hello_verify_request() local
966 msg_len = p - msg; in dtls1_send_hello_verify_request()
969 DTLS1_MT_HELLO_VERIFY_REQUEST, msg_len, 0, in dtls1_send_hello_verify_request()
970 msg_len); in dtls1_send_hello_verify_request()
/NextBSD/crypto/openssh/
HDmsg.c68 u_int msg_len; in ssh_msg_recv() local
77 msg_len = get_u32(buf); in ssh_msg_recv()
78 if (msg_len > 256 * 1024) { in ssh_msg_recv()
79 error("ssh_msg_recv: read: bad msg_len %u", msg_len); in ssh_msg_recv()
83 buffer_append_space(m, msg_len); in ssh_msg_recv()
84 if (atomicio(read, fd, buffer_ptr(m), msg_len) != msg_len) { in ssh_msg_recv()
HDssh-pkcs11-helper.c209 u_int msg_len; in process() local
219 msg_len = get_u32(cp); in process()
220 if (msg_len > MAX_MSG_LENGTH) { in process()
221 error("bad message len %d", msg_len); in process()
224 if (buf_len < msg_len + 4) in process()
252 if (msg_len < consumed) { in process()
253 error("msg_len %d < consumed %d", msg_len, consumed); in process()
256 if (msg_len > consumed) in process()
257 buffer_consume(&iqueue, msg_len - consumed); in process()
HDumac.c788 UINT32 msg_len; /* Total length of data passed */ member
944 pc->msg_len = 0; in uhash_reset()
1061 if (ctx->msg_len + len <= L1_KEY_LEN) { in uhash_update()
1063 ctx->msg_len += len; in uhash_update()
1066 bytes_hashed = ctx->msg_len % L1_KEY_LEN; in uhash_update()
1067 if (ctx->msg_len == L1_KEY_LEN) in uhash_update()
1079 ctx->msg_len += bytes_remaining; in uhash_update()
1089 ctx->msg_len += L1_KEY_LEN; in uhash_update()
1099 ctx->msg_len += len; in uhash_update()
1114 if (ctx->msg_len > L1_KEY_LEN) { in uhash_final()
[all …]
HDsftp-server.c1350 u_int msg_len, buf_len, consumed, type, i; in process() local
1358 msg_len = get_u32(cp); in process()
1359 if (msg_len > SFTP_MAX_MSG_LENGTH) { in process()
1364 if (buf_len < msg_len + 4) in process()
1405 if (msg_len < consumed) { in process()
1406 error("msg_len %u < consumed %u", msg_len, consumed); in process()
1409 if (msg_len > consumed) in process()
1410 buffer_consume(&iqueue, msg_len - consumed); in process()
HDmonitor_wrap.c145 u_int msg_len; in mm_request_receive() local
154 msg_len = get_u32(buf); in mm_request_receive()
155 if (msg_len > 256 * 1024) in mm_request_receive()
156 fatal("%s: read: bad msg_len %d", __func__, msg_len); in mm_request_receive()
158 buffer_append_space(m, msg_len); in mm_request_receive()
159 if (atomicio(read, sock, buffer_ptr(m), msg_len) != msg_len) in mm_request_receive()
/NextBSD/contrib/tcpdump/
HDprint-olsr.c93 uint8_t msg_len[2]; member
103 uint8_t msg_len[2]; member
273 u_int msg_type, msg_len, msg_tlen, hello_len; in olsr_print() local
319 msg_len = EXTRACT_16BITS(msgptr.v6->msg_len); in olsr_print()
320 if ((msg_len >= sizeof (struct olsr_msg6)) in olsr_print()
321 && (msg_len <= length)) in olsr_print()
325 if (msg_type == 0 || msg_len == 0) { in olsr_print()
337 msg_len, (msg_len_valid == 0) ? " (invalid)" : "")); in olsr_print()
342 msg_tlen = msg_len - sizeof(struct olsr_msg6); in olsr_print()
350 msg_len = EXTRACT_16BITS(msgptr.v4->msg_len); in olsr_print()
[all …]
HDprint-ldp.c568 u_short pdu_len,msg_len,msg_type,msg_tlen; in ldp_pdu_print() local
614 msg_len=EXTRACT_16BITS(ldp_msg_header->length); in ldp_pdu_print()
617 if (msg_len < sizeof(struct ldp_msg_header)-4) { in ldp_pdu_print()
625 msg_len, in ldp_pdu_print()
636 msg_len, in ldp_pdu_print()
641 msg_tlen=msg_len-(sizeof(struct ldp_msg_header)-4); /* Type & Length fields not included */ in ldp_pdu_print()
644 ND_TCHECK2(*tptr, msg_len); in ldp_pdu_print()
683 msg_len); in ldp_pdu_print()
685 tptr += msg_len+4; in ldp_pdu_print()
686 tlen -= msg_len+4; in ldp_pdu_print()
/NextBSD/contrib/wpa/src/eap_server/
HDeap_server_gtc.c55 size_t msg_len; in eap_gtc_buildReq() local
59 msg_len = os_strlen(msg); in eap_gtc_buildReq()
60 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, msg_len, in eap_gtc_buildReq()
69 wpabuf_put_data(req, msg, msg_len); in eap_gtc_buildReq()
/NextBSD/contrib/wpa/wpa_supplicant/
HDpreauth_test.c46 size_t *msg_len, void **data_pos) in wpa_alloc_eapol() argument
50 *msg_len = sizeof(*hdr) + data_len; in wpa_alloc_eapol()
51 hdr = os_malloc(*msg_len); in wpa_alloc_eapol()
73 size_t *msg_len, void **data_pos) in _wpa_alloc_eapol() argument
75 return wpa_alloc_eapol(wpa_s, type, data, data_len, msg_len, data_pos); in _wpa_alloc_eapol()
/NextBSD/lib/libtacplus/
HDtaclib_private.h103 u_int16_t msg_len; member
130 u_int16_t msg_len; member
149 u_int16_t msg_len; member
HDtaclib.c317 int msg_len; in crypt_msg() local
325 msg_len = ntohl(msg->length); in crypt_msg()
334 for (chunk = 0; chunk < msg_len; chunk += sizeof md5) { in crypt_msg()
340 if ((chunk_len = msg_len - chunk) > sizeof md5) in crypt_msg()
1095 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 || in tac_send_authen()
1155 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ares->msg_len)) == -1 || in tac_send_author()
1210 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 || in tac_send_acct()
/NextBSD/lib/libpam/modules/pam_tacplus/
HDpam_tacplus.c157 size_t msg_len; in pam_sm_authenticate() local
249 srvr_msg = (char *)tac_get_data(tach, &msg_len); in pam_sm_authenticate()
250 if (srvr_msg != NULL && msg_len != 0) { in pam_sm_authenticate()
/NextBSD/contrib/libpcap/
HDpcap-netfilter-linux.c111 u_int32_t msg_len; in netfilter_read_linux() local
201 msg_len = NLMSG_ALIGN(nlh->nlmsg_len); in netfilter_read_linux()
202 if (msg_len > len) in netfilter_read_linux()
203 msg_len = len; in netfilter_read_linux()
205 len -= msg_len; in netfilter_read_linux()
206 buf += msg_len; in netfilter_read_linux()
/NextBSD/usr.bin/gencat/
HDgencat.c554 int msg_len = strlen(msg->str) + 1; local
557 msg_hdr->__msglen = htonl(msg_len);
560 memcpy(strings, msg->str, msg_len);
561 strings += msg_len;
562 msg_offset += msg_len;
/NextBSD/contrib/wpa/src/crypto/
HDcrypto_module_tests.c160 int msg_len; member
225 if (omac1_aes_128(tv->k, tv->msg, tv->msg_len, result) || in test_omac1_vector()
231 if (tv->msg_len > 1) { in test_omac1_vector()
236 len[1] = tv->msg_len - 1; in test_omac1_vector()
247 len[0] = tv->msg_len - 2; in test_omac1_vector()
248 addr[1] = tv->msg + tv->msg_len - 2; in test_omac1_vector()
250 addr[2] = tv->msg + tv->msg_len - 1; in test_omac1_vector()
/NextBSD/contrib/unbound/libunbound/
HDcontext.c337 q->msg_len = 0; in context_deserialize_answer()
344 q->msg_len = len - 5*sizeof(uint32_t) - wlen; in context_deserialize_answer()
346 q->msg_len); in context_deserialize_answer()
349 q->msg_len = 0; in context_deserialize_answer()
/NextBSD/sys/dev/aic/
HDaic.c398 aic->msg_len = 1; in aic_selected()
468 aic->msg_len = 1; in aic_sched_msgout()
537 aic->msg_len = 0; in aic_msgin()
554 aic->msg_buf[aic->msg_len++] = aic_inb(aic, SCSIBUS); in aic_msgin()
556 if (aic->msg_len < 2) { in aic_msgin()
584 if (aic->msg_len == msglen) { in aic_msgin()
586 aic->msg_len = 0; in aic_msgin()
792 if (msgidx > 0 && msgidx == aic->msg_len) { in aic_msgout()
810 aic->msg_len = 1; in aic_msgout()
817 aic->msg_len = 2; in aic_msgout()
[all …]
/NextBSD/sys/dev/hyperv/netvsc/
HDhv_rndis_filter.c183 rndis_mesg->msg_len = message_length; in hv_rndis_request()
236 packet->tot_data_buf_len = request->request_msg.msg_len; in hv_rf_send_request()
241 packet->page_buffers[0].length = request->request_msg.msg_len; in hv_rf_send_request()
291 if (response->msg_len <= sizeof(rndis_msg)) { in hv_rf_receive_response()
293 response->msg_len); in hv_rf_receive_response()
/NextBSD/sys/netinet/libalias/
HDalias_smedia.c437 u_short msg_id, msg_len; in alias_pna_out() local
447 memcpy(&msg_len, work, 2); in alias_pna_out()
475 work += ntohs(msg_len); in alias_pna_out()
/NextBSD/contrib/wpa/wpa_supplicant/tests/
HDtest_wpa.c91 u16 data_len, size_t *msg_len, void **data_pos) in supp_alloc_eapol() argument
98 *msg_len = sizeof(*hdr) + data_len; in supp_alloc_eapol()
99 hdr = os_malloc(*msg_len); in supp_alloc_eapol()
/NextBSD/contrib/wpa/src/rsn_supp/
HDwpa_i.h199 size_t *msg_len, void **data_pos) in wpa_sm_alloc_eapol() argument
203 msg_len, data_pos); in wpa_sm_alloc_eapol()
354 u8 *msg, size_t msg_len, u8 *key_mic);
/NextBSD/contrib/wpa/src/eap_common/
HDeap_sim_common.h88 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac,
101 void eap_sim_add_mac_sha256(const u8 *k_aut, const u8 *msg, size_t msg_len,
HDeap_sim_common.c205 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac, in eap_sim_add_mac() argument
213 len[0] = msg_len; in eap_sim_add_mac()
219 wpa_hexdump(MSG_MSGDUMP, "EAP-SIM: Add MAC - msg", msg, msg_len); in eap_sim_add_mac()
400 void eap_sim_add_mac_sha256(const u8 *k_aut, const u8 *msg, size_t msg_len, in eap_sim_add_mac_sha256() argument
408 len[0] = msg_len; in eap_sim_add_mac_sha256()
414 wpa_hexdump(MSG_MSGDUMP, "EAP-AKA': Add MAC - msg", msg, msg_len); in eap_sim_add_mac_sha256()

123