Home
last modified time | relevance | path

Searched refs:hdr_len (Results 1 – 25 of 38) sorted by relevance

12

/external/wpa_supplicant_8/src/crypto/
Daes-eax.c29 const u8 *hdr, size_t hdr_len, in aes_128_eax_encrypt() argument
42 if (hdr_len > buf_len) in aes_128_eax_encrypt()
43 buf_len = hdr_len; in aes_128_eax_encrypt()
58 os_memcpy(buf + 16, hdr, hdr_len); in aes_128_eax_encrypt()
59 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) in aes_128_eax_encrypt()
93 const u8 *hdr, size_t hdr_len, in aes_128_eax_decrypt() argument
106 if (hdr_len > buf_len) in aes_128_eax_decrypt()
107 buf_len = hdr_len; in aes_128_eax_decrypt()
124 os_memcpy(buf + 16, hdr, hdr_len); in aes_128_eax_decrypt()
125 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) { in aes_128_eax_decrypt()
Daes_wrap.h42 const u8 *hdr, size_t hdr_len,
46 const u8 *hdr, size_t hdr_len,
/external/tcpdump/
Dprint-token.c155 u_int route_len = 0, hdr_len = TOKEN_HDRLEN; in token_print() local
162 return hdr_len; in token_print()
180 return hdr_len; in token_print()
183 hdr_len += route_len; in token_print()
184 if (caplen < hdr_len) { in token_print()
186 return hdr_len; in token_print()
213 length -= hdr_len; in token_print()
214 p += hdr_len; in token_print()
215 caplen -= hdr_len; in token_print()
227 hdr_len += llc_hdrlen; in token_print()
[all …]
Dprint-fr.c245 u_int hdr_len; in fr_print() local
299 hdr_len = addr_len + 1 /* UI */ + 1 /* pad */ + 1 /* NLPID */; in fr_print()
307 hdr_len = addr_len + 1 /* UI */ + 1 /* NLPID */; in fr_print()
310 ND_TCHECK(p[hdr_len - 1]); in fr_print()
311 if (length < hdr_len) in fr_print()
313 nlpid = p[hdr_len - 1]; in fr_print()
317 p += hdr_len; in fr_print()
318 length -= hdr_len; in fr_print()
339 fr_hdr_print(ndo, length + hdr_len, hdr_len, in fr_print()
342 ND_DEFAULTPRINT(p - hdr_len, length + hdr_len); in fr_print()
[all …]
Dprint-m3ua.c258 uint16_t hdr_len; in m3ua_tags_print() local
268 hdr_len = EXTRACT_16BITS(p + 2); in m3ua_tags_print()
269 if (hdr_len < sizeof(struct m3ua_param_header)) in m3ua_tags_print()
272 align = (p + hdr_len - buf) % 4; in m3ua_tags_print()
274 ND_TCHECK2(*p, hdr_len + align); in m3ua_tags_print()
275 tag_value_print(ndo, p, hdr_tag, hdr_len - sizeof(struct m3ua_param_header)); in m3ua_tags_print()
276 p += hdr_len + align; in m3ua_tags_print()
Dprint-ppp.c1519 u_int hdr_len = 0; in ppp_print() local
1535 hdr_len += 2; in ppp_print()
1541 hdr_len += 2; in ppp_print()
1546 hdr_len += 2; in ppp_print()
1560 hdr_len++; in ppp_print()
1566 hdr_len += 2; in ppp_print()
1576 return (hdr_len); in ppp_print()
/external/iptables/extensions/
Dlibip6t_srh.c55 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdr_len)},
57 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdr_len)},
59 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdr_len)},
83 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdr_len)},
85 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdr_len)},
87 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdr_len)},
294 srhinfo->hdr_len); in srh_print()
297 srhinfo->hdr_len); in srh_print()
300 srhinfo->hdr_len); in srh_print()
334 srhinfo->hdr_len); in srh1_print()
[all …]
/external/libwebsockets/lib/roles/h2/
Dhpack.c364 uint32_t *hdr_len) in lws_token_from_index() argument
386 if (hdr_len) in lws_token_from_index()
387 *hdr_len = static_hdr_len[index]; in lws_token_from_index()
418 if (hdr_len) in lws_token_from_index()
419 *hdr_len = dyn->entries[index].hdr_len; in lws_token_from_index()
454 dyn->entries[m].hdr_len, dyn->entries[m].value ? in lws_h2_dynamic_table_dump()
466 dyn->entries[idx].hdr_len; in lws_dynamic_free()
470 dyn->entries[idx].hdr_len = 0; in lws_dynamic_free()
490 lws_dynamic_token_insert(struct lws *wsi, int hdr_len, in lws_dynamic_token_insert() argument
525 dyn->virtual_payload_usage + hdr_len + len > in lws_dynamic_token_insert()
[all …]
Dprivate-lib-roles-h2.h184 uint16_t hdr_len; /* virtual, for accounting */ member
/external/arm-trusted-firmware/tools/stm32image/
Dstm32image.c67 uint32_t hdr_len = sizeof(struct stm32_header); in stm32image_checksum() local
70 if (len < hdr_len) { in stm32image_checksum()
74 p = (unsigned char *)start + hdr_len; in stm32image_checksum()
75 len -= hdr_len; in stm32image_checksum()
/external/iproute2/tc/
Dq_atm.c57 int hdr_len = -1; in atm_parse_class_opt() local
123 hdr_len = ptr-hdr; in atm_parse_class_opt()
173 if (hdr_len != -1) addattr_l(n, 1024, TCA_ATM_HDR, hdr, hdr_len); in atm_parse_class_opt()
/external/kernel-headers/original/uapi/linux/netfilter_ipv6/
Dip6t_srh.h55 __u8 hdr_len; member
82 __u8 hdr_len; member
/external/iptables/include/linux/netfilter_ipv6/
Dip6t_srh.h54 __u8 hdr_len; member
81 __u8 hdr_len; member
/external/kernel-headers/original/uapi/linux/
Dvirtio_net.h135 __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */ member
187 __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */ member
Dbtf.h15 __u32 hdr_len; member
/external/libbrillo/brillo/http/
Dhttp_connection_curl.cc244 size_t hdr_len = size * num; in header_callback() local
245 std::string header(ptr, hdr_len); in header_callback()
265 return hdr_len; in header_callback()
/external/wpa_supplicant_8/src/common/
Dgas_server.c95 size_t hdr_len = 24 + 2 + 5 + 3 + handler->adv_proto_id_len + 2; in gas_server_send_resp() local
112 } else if (hdr_len + wpabuf_len(query_resp) > max_len) { in gas_server_send_resp()
261 size_t hdr_len = 24 + 2 + 6 + 3 + handler->adv_proto_id_len + 2; in gas_server_handle_rx_comeback_req() local
291 if (hdr_len + remaining > max_len) in gas_server_handle_rx_comeback_req()
292 resp_frag_len = max_len - hdr_len; in gas_server_handle_rx_comeback_req()
/external/perfetto/src/trace_processor/rpc/
Dhttpd.cc337 auto hdr_len = static_cast<size_t>(sprintf(chunk_hdr, "%zx\r\n", len)); in HandleRequest() local
338 cli_sock->Send(chunk_hdr, hdr_len); in HandleRequest()
342 hdr_len = static_cast<size_t>(sprintf(chunk_hdr, "0\r\n\r\n")); in HandleRequest()
343 cli_sock->Send(chunk_hdr, hdr_len); in HandleRequest()
/external/boringssl/src/crypto/x509/
Dasn1_gen.c173 long hdr_len = 0; in generate_v3() local
218 r = ASN1_get_object(&cpy_start, &hdr_len, &hdr_tag, &hdr_class, in generate_v3()
231 hdr_len = 0; in generate_v3()
239 len = ASN1_object_size(0, hdr_len, asn1_tags.imp_tag); in generate_v3()
281 ASN1_put_object(&p, hdr_constructed, hdr_len, in generate_v3()
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/
Dasn1_gen.c173 long hdr_len = 0; in generate_v3() local
218 r = ASN1_get_object(&cpy_start, &hdr_len, &hdr_tag, &hdr_class, in generate_v3()
231 hdr_len = 0; in generate_v3()
239 len = ASN1_object_size(0, hdr_len, asn1_tags.imp_tag); in generate_v3()
281 ASN1_put_object(&p, hdr_constructed, hdr_len, in generate_v3()
/external/crosvm/virtio_sys/src/
Dvirtio_net.rs452 pub hdr_len: __virtio16, field
491 unsafe { &(*(0 as *const virtio_net_hdr_v1)).hdr_len as *const _ as usize }, in bindgen_test_layout_virtio_net_hdr_v1()
497 stringify!(hdr_len) in bindgen_test_layout_virtio_net_hdr_v1()
551 pub hdr_len: __virtio16, field
589 unsafe { &(*(0 as *const virtio_net_hdr)).hdr_len as *const _ as usize }, in bindgen_test_layout_virtio_net_hdr()
595 stringify!(hdr_len) in bindgen_test_layout_virtio_net_hdr()
/external/libwebsockets/lib/roles/http/server/
Dlws-spa.c47 uint8_t hdr_len; member
303 if (s->mp >= mp_hdrs[n].hdr_len) { in lws_urldecode_s_process()
315 if (s->mp + 1 == mp_hdrs[n].hdr_len) { in lws_urldecode_s_process()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dkfree_skb.c42 __u16 mac_len, hdr_len, queue_mapping; member
/external/virglrenderer/tests/
Dtestvirgl_encode.c273 int hdr_len = base_hdr_size + (first_pass ? strm_hdr_size : 0); in virgl_encode_shader_state() local
274 if (ctx->cbuf->cdw + hdr_len + 1 > VIRGL_MAX_CMDBUF_DWORDS) in virgl_encode_shader_state()
277 thispass = (VIRGL_MAX_CMDBUF_DWORDS - ctx->cbuf->cdw - hdr_len - 1) * 4; in virgl_encode_shader_state()
280 len = ((length + 3) / 4) + hdr_len; in virgl_encode_shader_state()
/external/sonivox/jet_tools/JetCreator/
Dmidifile.py1282 …riff_tag, self.hdr_len, self.format, self.num_tracks, self.timebase.ppqn = struct.unpack(SMF_HEADE…
1284 (riff_tag, self.hdr_len, self.format, self.num_tracks, self.timebase.ppqn))
1291 if self.hdr_len + 8 != struct.calcsize(SMF_HEADER_FMT):
1292 self.Warning('SMF file has unusual header size: %d bytes' % self.hdr_len)
1295 offset = start_offset + self.hdr_len + 8

12