/external/strace/ |
D | s390.c | 482 print_sthyi_machine(struct tcb *tcp, struct sthyi_machine *hdr, uint16_t size, in print_sthyi_machine() argument 487 CHECK_SIZE(hdr, size, "machine structure"); in print_sthyi_machine() 491 if (hdr->infmflg1) { /* Reserved */ in print_sthyi_machine() 492 PRINT_FIELD_0X("", *hdr, infmflg1); in print_sthyi_machine() 495 if (hdr->infmflg2) { /* Reserved */ in print_sthyi_machine() 496 PRINT_FIELD_0X(", ", *hdr, infmflg2); in print_sthyi_machine() 501 PRINT_FIELD_0X("", *hdr, infmval1); in print_sthyi_machine() 502 cnt_val = !!(hdr->infmval1 & 0x80); in print_sthyi_machine() 503 id_val = !!(hdr->infmval1 & 0x40); in print_sthyi_machine() 504 name_val = !!(hdr->infmval1 & 0x20); in print_sthyi_machine() [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_ocsp.c | 116 struct asn1_hdr hdr; in tls_process_ocsp_single_response() local 141 if (asn1_get_next(resp, len, &hdr) < 0 || !asn1_is_sequence(&hdr)) { in tls_process_ocsp_single_response() 142 asn1_unexpected(&hdr, "OCSP: Expected SEQUENCE (CertID)"); in tls_process_ocsp_single_response() 145 pos = hdr.payload; in tls_process_ocsp_single_response() 146 end = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 161 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response() 162 !asn1_is_octetstring(&hdr)) { in tls_process_ocsp_single_response() 163 asn1_unexpected(&hdr, in tls_process_ocsp_single_response() 167 name_hash = hdr.payload; in tls_process_ocsp_single_response() 168 name_hash_len = hdr.length; in tls_process_ocsp_single_response() [all …]
|
D | tlsv1_cred.c | 446 struct asn1_hdr hdr; in pkcs12_certbag() local 458 if (asn1_get_next(buf, len, &hdr) < 0 || !asn1_is_sequence(&hdr)) { in pkcs12_certbag() 459 asn1_unexpected(&hdr, "PKCS #12: Expected SEQUENCE (CertBag)"); in pkcs12_certbag() 463 pos = hdr.payload; in pkcs12_certbag() 464 end = hdr.payload + hdr.length; in pkcs12_certbag() 481 if (asn1_get_next(pos, end - pos, &hdr) < 0 || !hdr.constructed || in pkcs12_certbag() 482 !asn1_is_cs_tag(&hdr, 0)) { in pkcs12_certbag() 483 asn1_unexpected(&hdr, in pkcs12_certbag() 488 if (asn1_get_next(hdr.payload, hdr.length, &hdr) < 0 || in pkcs12_certbag() 489 !asn1_is_octetstring(&hdr)) { in pkcs12_certbag() [all …]
|
D | asn1.h | 62 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr); 63 void asn1_print_hdr(const struct asn1_hdr *hdr, const char *title); 64 void asn1_unexpected(const struct asn1_hdr *hdr, const char *title); 72 int asn1_get_sequence(const u8 *buf, size_t len, struct asn1_hdr *hdr, 88 static inline bool asn1_is_oid(const struct asn1_hdr *hdr) in asn1_is_oid() argument 90 return hdr->class == ASN1_CLASS_UNIVERSAL && in asn1_is_oid() 91 hdr->tag == ASN1_TAG_OID; in asn1_is_oid() 94 static inline bool asn1_is_boolean(const struct asn1_hdr *hdr) in asn1_is_boolean() argument 96 return hdr->class == ASN1_CLASS_UNIVERSAL && in asn1_is_boolean() 97 hdr->tag == ASN1_TAG_BOOLEAN; in asn1_is_boolean() [all …]
|
D | asn1.c | 106 static int asn1_valid_der_boolean(struct asn1_hdr *hdr) in asn1_valid_der_boolean() argument 109 if (hdr->length != 1) { in asn1_valid_der_boolean() 111 hdr->length); in asn1_valid_der_boolean() 115 if (hdr->payload[0] != 0 && hdr->payload[0] != 0xff) { in asn1_valid_der_boolean() 118 hdr->payload[0]); in asn1_valid_der_boolean() 126 static int asn1_valid_der(struct asn1_hdr *hdr) in asn1_valid_der() argument 128 if (hdr->class != ASN1_CLASS_UNIVERSAL) in asn1_valid_der() 130 if (hdr->tag == ASN1_TAG_BOOLEAN && !asn1_valid_der_boolean(hdr)) in asn1_valid_der() 132 if (hdr->tag == ASN1_TAG_NULL && hdr->length != 0) in asn1_valid_der() 136 if (hdr->constructed && in asn1_valid_der() [all …]
|
D | x509v3.c | 185 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local 195 if (asn1_get_next(buf, len, &hdr) < 0 || !asn1_is_sequence(&hdr)) { in x509_parse_algorithm_identifier() 196 asn1_unexpected(&hdr, in x509_parse_algorithm_identifier() 200 if (hdr.length > buf + len - hdr.payload) in x509_parse_algorithm_identifier() 202 pos = hdr.payload; in x509_parse_algorithm_identifier() 203 end = pos + hdr.length; in x509_parse_algorithm_identifier() 220 struct asn1_hdr hdr; in x509_parse_public_key() local 233 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key() 234 !asn1_is_sequence(&hdr)) { in x509_parse_public_key() 235 asn1_unexpected(&hdr, in x509_parse_public_key() [all …]
|
D | pkcs8.c | 21 struct asn1_hdr hdr; in pkcs8_key_import() local 30 if (asn1_get_next(buf, len, &hdr) < 0 || !asn1_is_sequence(&hdr)) { in pkcs8_key_import() 31 asn1_unexpected(&hdr, in pkcs8_key_import() 35 pos = hdr.payload; in pkcs8_key_import() 36 end = pos + hdr.length; in pkcs8_key_import() 39 if (asn1_get_next(pos, end - pos, &hdr) < 0 || !asn1_is_integer(&hdr)) { in pkcs8_key_import() 40 asn1_unexpected(&hdr, "PKCS #8: Expected INTEGER"); in pkcs8_key_import() 48 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) { in pkcs8_key_import() 53 pos = hdr.payload + hdr.length; in pkcs8_key_import() 66 if (asn1_get_next(pos, len, &hdr) < 0 || !asn1_is_sequence(&hdr)) { in pkcs8_key_import() [all …]
|
D | pkcs5.c | 93 struct asn1_hdr hdr; in pkcs5_get_params_pbes2() local 109 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2() 110 !asn1_is_sequence(&hdr)) { in pkcs5_get_params_pbes2() 111 asn1_unexpected(&hdr, in pkcs5_get_params_pbes2() 115 pos = hdr.payload; in pkcs5_get_params_pbes2() 116 end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 118 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2() 119 !asn1_is_sequence(&hdr)) { in pkcs5_get_params_pbes2() 120 asn1_unexpected(&hdr, in pkcs5_get_params_pbes2() 125 pos = hdr.payload; in pkcs5_get_params_pbes2() [all …]
|
D | pkcs1.c | 209 struct asn1_hdr hdr; in pkcs1_v15_sig_ver() local 238 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 || in pkcs1_v15_sig_ver() 239 !asn1_is_sequence(&hdr)) { in pkcs1_v15_sig_ver() 240 asn1_unexpected(&hdr, in pkcs1_v15_sig_ver() 246 hdr.payload, hdr.length); in pkcs1_v15_sig_ver() 248 pos = hdr.payload; in pkcs1_v15_sig_ver() 249 end = pos + hdr.length; in pkcs1_v15_sig_ver() 259 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs1_v15_sig_ver() 260 !asn1_is_sequence(&hdr)) { in pkcs1_v15_sig_ver() 261 asn1_unexpected(&hdr, in pkcs1_v15_sig_ver() [all …]
|
/external/mesa3d/src/util/ |
D | u_debug_memory.c | 105 data_from_header(struct debug_memory_header *hdr) in data_from_header() argument 107 if (hdr) in data_from_header() 108 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); in data_from_header() 114 footer_from_header(struct debug_memory_header *hdr) in footer_from_header() argument 116 if (hdr) in footer_from_header() 117 …return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size… in footer_from_header() 127 struct debug_memory_header *hdr; in debug_malloc() local 130 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc() 131 if (!hdr) { in debug_malloc() 138 hdr->no = last_no++; in debug_malloc() [all …]
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_format_vp9.cc | 35 uint8_t TemporalIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in TemporalIdxField() argument 36 return (hdr.temporal_idx == kNoTemporalIdx) ? def : hdr.temporal_idx; in TemporalIdxField() 39 uint8_t SpatialIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in SpatialIdxField() argument 40 return (hdr.spatial_idx == kNoSpatialIdx) ? def : hdr.spatial_idx; in SpatialIdxField() 43 int16_t Tl0PicIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in Tl0PicIdxField() argument 44 return (hdr.tl0_pic_idx == kNoTl0PicIdx) ? def : hdr.tl0_pic_idx; in Tl0PicIdxField() 55 size_t PictureIdLength(const RTPVideoHeaderVP9& hdr) { in PictureIdLength() argument 56 if (hdr.picture_id == kNoPictureId) in PictureIdLength() 58 return (hdr.max_picture_id == kMaxOneBytePictureId) ? 1 : 2; in PictureIdLength() 61 bool PictureIdPresent(const RTPVideoHeaderVP9& hdr) { in PictureIdPresent() argument [all …]
|
/external/wpa_supplicant_8/src/common/ |
D | dpp_backup.c | 538 struct asn1_hdr hdr; in dpp_parse_recipient_infos() local 559 if (asn1_get_next(pos, end - pos, &hdr) < 0 || !hdr.constructed || in dpp_parse_recipient_infos() 560 !asn1_is_cs_tag(&hdr, 3)) { in dpp_parse_recipient_infos() 561 asn1_unexpected(&hdr, "DPP: Expected CHOICE [3] (pwri)"); in dpp_parse_recipient_infos() 565 hdr.payload, hdr.length); in dpp_parse_recipient_infos() 566 pos = hdr.payload; in dpp_parse_recipient_infos() 567 end = pos + hdr.length; in dpp_parse_recipient_infos() 580 if (asn1_get_sequence(pos, end - pos, &hdr, &end) < 0) in dpp_parse_recipient_infos() 582 pos = hdr.payload; in dpp_parse_recipient_infos() 594 if (asn1_get_next(pos, end - pos, &hdr) < 0 || !hdr.constructed || in dpp_parse_recipient_infos() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_lwt_ip_encap.c | 21 } hdr; in bpf_lwt_encap_gre() local 24 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre() 26 hdr.iph.ihl = 5; in bpf_lwt_encap_gre() 27 hdr.iph.version = 4; in bpf_lwt_encap_gre() 28 hdr.iph.ttl = 0x40; in bpf_lwt_encap_gre() 29 hdr.iph.protocol = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre() 31 hdr.iph.saddr = 0x640110ac; /* 172.16.1.100 */ in bpf_lwt_encap_gre() 32 hdr.iph.daddr = 0x641010ac; /* 172.16.16.100 */ in bpf_lwt_encap_gre() 34 hdr.iph.saddr = 0xac100164; /* 172.16.1.100 */ in bpf_lwt_encap_gre() 35 hdr.iph.daddr = 0xac101064; /* 172.16.16.100 */ in bpf_lwt_encap_gre() [all …]
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmp_redirector.c | 293 ntohs(rcvarp_p->hdr.ar_op)); in return_arp_reply() 294 if (rcvarp_p->hdr.ar_op != htons(ARPOP_REQUEST)) in return_arp_reply() 326 memcpy(sndeth.hdr.h_dest, rcveth_p->hdr.h_source, ETH_ALEN); in return_arp_reply() 327 memcpy(sndeth.hdr.h_source, gateway_p->hd_addr, ETH_ALEN); in return_arp_reply() 328 sndeth.hdr.h_proto = htons(ETH_P_ARP); in return_arp_reply() 331 sndarp_p->hdr.ar_hrd = htons(ARPHRD_ETHER); in return_arp_reply() 332 sndarp_p->hdr.ar_pro = htons(ETH_P_IP); in return_arp_reply() 333 sndarp_p->hdr.ar_hln = ETH_ALEN; in return_arp_reply() 334 sndarp_p->hdr.ar_pln = 4; in return_arp_reply() 335 sndarp_p->hdr.ar_op = htons(ARPOP_REPLY); in return_arp_reply() [all …]
|
/external/toybox/toys/posix/ |
D | tar.c | 80 } hdr; 194 struct tar_hdr hdr; in add_to_tar() local 249 memset(&hdr, 0, sizeof(hdr)); in add_to_tar() 250 strncpy(hdr.name, hname, sizeof(hdr.name)); in add_to_tar() 251 ITOO(hdr.mode, st->st_mode &07777); in add_to_tar() 252 ITOO(hdr.uid, st->st_uid); in add_to_tar() 253 ITOO(hdr.gid, st->st_gid); in add_to_tar() 254 ITOO(hdr.size, 0); //set size later in add_to_tar() 255 ITOO(hdr.mtime, st->st_mtime); in add_to_tar() 256 strcpy(hdr.magic, "ustar "); in add_to_tar() [all …]
|
/external/libpcap/ |
D | sf-pcap.c | 111 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap); 157 struct pcap_file_header hdr; in pcap_check_header() local 189 hdr.magic = magic_int; in pcap_check_header() 190 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header() 191 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header() 192 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header() 199 sizeof(hdr), amt_read); in pcap_check_header() 209 hdr.version_major = SWAPSHORT(hdr.version_major); in pcap_check_header() 210 hdr.version_minor = SWAPSHORT(hdr.version_minor); in pcap_check_header() 211 hdr.thiszone = SWAPLONG(hdr.thiszone); in pcap_check_header() [all …]
|
/external/vboot_reference/tests/ |
D | vboot_common3_tests.c | 34 VbKeyBlockHeader *hdr; in KeyBlockVerifyTest() local 38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest() 39 TEST_NEQ((size_t)hdr, 0, "KeyBlockVerify() prerequisites"); in KeyBlockVerifyTest() 40 if (!hdr) in KeyBlockVerifyTest() 42 hsize = (unsigned) hdr->key_block_size; in KeyBlockVerifyTest() 45 TEST_EQ(KeyBlockVerify(hdr, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 47 TEST_EQ(KeyBlockVerify(hdr, hsize, public_key, 0), 0, in KeyBlockVerifyTest() 49 TEST_NEQ(KeyBlockVerify(hdr, hsize, NULL, 0), 0, in KeyBlockVerifyTest() 52 TEST_NEQ(KeyBlockVerify(hdr, hsize - 1, NULL, 1), 0, in KeyBlockVerifyTest() 54 TEST_EQ(KeyBlockVerify(hdr, hsize + 1, NULL, 1), 0, in KeyBlockVerifyTest() [all …]
|
D | vb20_common3_tests.c | 40 struct vb2_keyblock *hdr; in test_verify_keyblock() local 51 hdr = (struct vb2_keyblock *) in test_verify_keyblock() 53 TEST_NEQ((size_t)hdr, 0, "vb2_verify_keyblock() prerequisites"); in test_verify_keyblock() 54 if (!hdr) in test_verify_keyblock() 56 hsize = hdr->keyblock_size; in test_verify_keyblock() 59 Memcpy(h, hdr, hsize); in test_verify_keyblock() 63 Memcpy(h, hdr, hsize); in test_verify_keyblock() 68 Memcpy(h, hdr, hsize); in test_verify_keyblock() 72 Memcpy(h, hdr, hsize); in test_verify_keyblock() 78 Memcpy(h, hdr, hsize); in test_verify_keyblock() [all …]
|
/external/crosvm/third_party/vmm_vhost/src/ |
D | master.rs | 148 let hdr = node.send_request_header(MasterReq::GET_FEATURES, None)?; in get_features() localVariable 149 let val = node.recv_reply::<VhostUserU64>(&hdr)?; in get_features() 158 let hdr = node.send_request_with_body(MasterReq::SET_FEATURES, &val, None)?; in set_features() localVariable 160 node.wait_for_ack(&hdr) in set_features() 168 let hdr = node.send_request_header(MasterReq::SET_OWNER, None)?; in set_owner() localVariable 169 node.wait_for_ack(&hdr) in set_owner() 174 let hdr = node.send_request_header(MasterReq::RESET_OWNER, None)?; in reset_owner() localVariable 175 node.wait_for_ack(&hdr) in reset_owner() 204 let hdr = node.send_request_with_payload( in set_mem_table() localVariable 210 node.wait_for_ack(&hdr) in set_mem_table() [all …]
|
/external/vboot_reference/firmware/lib/ |
D | vboot_audio.c | 66 VbDevMusic *hdr = CUSTOM_MUSIC_NOTES; in VbGetDevMusicNotes() local 73 "maxsize is %d\n", use_short, hdr, maxsize)); in VbGetDevMusicNotes() 88 if (!hdr || maxsize < sizeof(VbDevMusic)) in VbGetDevMusicNotes() 91 if (0 != Memcmp(hdr->sig, "$SND", sizeof(hdr->sig))) { in VbGetDevMusicNotes() 101 if (hdr->count == 0 || hdr->count > maxnotes) { in VbGetDevMusicNotes() 103 hdr->count, maxnotes)); in VbGetDevMusicNotes() 112 if ((sizeof(VbDevMusicNote) > UINT_MAX / hdr->count) || in VbGetDevMusicNotes() 113 (sizeof(hdr->count) > in VbGetDevMusicNotes() 114 UINT_MAX - hdr->count * sizeof(VbDevMusicNote))) { in VbGetDevMusicNotes() 116 hdr->count)); in VbGetDevMusicNotes() [all …]
|
/external/arm-trusted-firmware/plat/ti/k3/common/drivers/ti_sci/ |
D | ti_sci_protocol.h | 87 struct ti_sci_msg_hdr hdr; member 104 struct ti_sci_msg_hdr hdr; member 136 struct ti_sci_msg_hdr hdr; member 155 struct ti_sci_msg_hdr hdr; member 173 struct ti_sci_msg_hdr hdr; member 197 struct ti_sci_msg_hdr hdr; member 240 struct ti_sci_msg_hdr hdr; member 261 struct ti_sci_msg_hdr hdr; member 278 struct ti_sci_msg_hdr hdr; member 299 struct ti_sci_msg_hdr hdr; member [all …]
|
/external/scapy/scapy/contrib/ |
D | http2.uts | 1102 hdr = pf.hdrs[0] 1103 assert(isinstance(hdr, h2.HPackLitHdrFldWithIncrIndexing)) 1104 assert(hdr.magic == 1) 1105 assert(hdr.index == 0) 1106 assert(isinstance(hdr.hdr_name, h2.HPackHdrString)) 1107 assert(hdr.hdr_name.type == 1) 1108 assert(hdr.hdr_name.len == 12) 1109 assert(hdr.hdr_name.getfieldval('data').origin() == 'X-Requested-With') 1110 assert(isinstance(hdr.hdr_value, h2.HPackHdrString)) 1111 assert(hdr.hdr_value.type == 0) [all …]
|
/external/uwb/src/uwa/include/ |
D | uwa_dm_int.h | 74 UWB_HDR hdr; member 81 UWB_HDR hdr; member 87 UWB_HDR hdr; member 95 UWB_HDR hdr; member 104 UWB_HDR hdr; member 111 UWB_HDR hdr; member 120 UWB_HDR hdr; member 126 UWB_HDR hdr; member 135 UWB_HDR hdr; member 141 UWB_HDR hdr; member [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | virtio_gpu.h | 157 struct virtio_gpu_ctrl_hdr hdr; member 176 struct virtio_gpu_ctrl_hdr hdr; member 183 struct virtio_gpu_ctrl_hdr hdr; member 192 struct virtio_gpu_ctrl_hdr hdr; member 200 struct virtio_gpu_ctrl_hdr hdr; member 208 struct virtio_gpu_ctrl_hdr hdr; member 223 struct virtio_gpu_ctrl_hdr hdr; member 230 struct virtio_gpu_ctrl_hdr hdr; member 238 struct virtio_gpu_ctrl_hdr hdr; member 255 struct virtio_gpu_ctrl_hdr hdr; member [all …]
|
/external/mesa3d/src/mesa/main/ |
D | program_binary.c | 79 struct program_binary_header *hdr = binary; in write_program_binary() local 81 if (binary_size < sizeof(*hdr)) in write_program_binary() 87 if (payload_size > binary_size - sizeof(*hdr)) in write_program_binary() 90 hdr->internal_format = 0; in write_program_binary() 91 memcpy(hdr->sha1, sha1, sizeof(hdr->sha1)); in write_program_binary() 92 memcpy(hdr + 1, payload, payload_size); in write_program_binary() 93 hdr->size = payload_size; in write_program_binary() 95 hdr->crc32 = util_hash_crc32(hdr + 1, payload_size); in write_program_binary() 102 simple_header_checks(const struct program_binary_header *hdr, unsigned length) in simple_header_checks() argument 104 if (hdr == NULL || length < sizeof(*hdr)) in simple_header_checks() [all …]
|