Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 463) sorted by relevance

12345678910>>...19

/external/wpa_supplicant_8/src/tls/
Dpkcs8.c21 struct asn1_hdr hdr; in pkcs8_key_import() local
30 if (asn1_get_next(buf, len, &hdr) < 0 || in pkcs8_key_import()
31 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs8_key_import()
32 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs8_key_import()
37 pos = hdr.payload; in pkcs8_key_import()
38 end = pos + hdr.length; in pkcs8_key_import()
41 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs8_key_import()
42 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { in pkcs8_key_import()
45 hdr.class, hdr.tag); in pkcs8_key_import()
53 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) { in pkcs8_key_import()
[all …]
Dx509v3.c184 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local
194 if (asn1_get_next(buf, len, &hdr) < 0 || in x509_parse_algorithm_identifier()
195 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_algorithm_identifier()
196 hdr.tag != ASN1_TAG_SEQUENCE) { in x509_parse_algorithm_identifier()
199 hdr.class, hdr.tag); in x509_parse_algorithm_identifier()
202 pos = hdr.payload; in x509_parse_algorithm_identifier()
203 end = pos + hdr.length; in x509_parse_algorithm_identifier()
223 struct asn1_hdr hdr; in x509_parse_public_key() local
236 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key()
237 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_public_key()
[all …]
Dasn1.c14 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next() argument
19 os_memset(hdr, 0, sizeof(*hdr)); in asn1_get_next()
23 hdr->identifier = *pos++; in asn1_get_next()
24 hdr->class = hdr->identifier >> 6; in asn1_get_next()
25 hdr->constructed = !!(hdr->identifier & (1 << 5)); in asn1_get_next()
27 if ((hdr->identifier & 0x1f) == 0x1f) { in asn1_get_next()
28 hdr->tag = 0; in asn1_get_next()
38 hdr->tag = (hdr->tag << 7) | (tmp & 0x7f); in asn1_get_next()
41 hdr->tag = hdr->identifier & 0x1f; in asn1_get_next()
51 hdr->length = 0; in asn1_get_next()
[all …]
Dpkcs5.c48 struct asn1_hdr hdr; in pkcs5_get_params() local
81 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 || in pkcs5_get_params()
82 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params()
83 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params()
86 hdr.class, hdr.tag); in pkcs5_get_params()
89 pos = hdr.payload; in pkcs5_get_params()
90 end = hdr.payload + hdr.length; in pkcs5_get_params()
93 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs5_get_params()
94 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params()
95 hdr.tag != ASN1_TAG_OCTETSTRING || in pkcs5_get_params()
[all …]
Drsa.c34 struct asn1_hdr hdr; in crypto_rsa_parse_integer() local
39 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in crypto_rsa_parse_integer()
40 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { in crypto_rsa_parse_integer()
42 "tag 0x%x", hdr.class, hdr.tag); in crypto_rsa_parse_integer()
46 if (bignum_set_unsigned_bin(num, hdr.payload, hdr.length) < 0) { in crypto_rsa_parse_integer()
51 return hdr.payload + hdr.length; in crypto_rsa_parse_integer()
65 struct asn1_hdr hdr; in crypto_rsa_import_public_key() local
87 if (asn1_get_next(buf, len, &hdr) < 0 || in crypto_rsa_import_public_key()
88 hdr.class != ASN1_CLASS_UNIVERSAL || in crypto_rsa_import_public_key()
89 hdr.tag != ASN1_TAG_SEQUENCE) { in crypto_rsa_import_public_key()
[all …]
Dtlsv1_cred.c355 struct asn1_hdr hdr; in tlsv1_set_dhparams_der() local
369 if (asn1_get_next(pos, len, &hdr) < 0 || in tlsv1_set_dhparams_der()
370 hdr.class != ASN1_CLASS_UNIVERSAL || in tlsv1_set_dhparams_der()
371 hdr.tag != ASN1_TAG_SEQUENCE) { in tlsv1_set_dhparams_der()
374 hdr.class, hdr.tag); in tlsv1_set_dhparams_der()
377 pos = hdr.payload; in tlsv1_set_dhparams_der()
380 if (asn1_get_next(pos, end - pos, &hdr) < 0) in tlsv1_set_dhparams_der()
383 if (hdr.class != ASN1_CLASS_UNIVERSAL || in tlsv1_set_dhparams_der()
384 hdr.tag != ASN1_TAG_INTEGER) { in tlsv1_set_dhparams_der()
386 "class=%d tag=0x%x", hdr.class, hdr.tag); in tlsv1_set_dhparams_der()
[all …]
/external/mesa3d/src/mesa/program/
Dsymbol_table.c50 struct symbol_header *hdr; member
108 struct symbol_header *hdr; member
145 const struct symbol_header *const hdr = sym->hdr; in check_symbol_table() local
148 for (sym2 = hdr->symbols in check_symbol_table()
151 assert(sym2->hdr == hdr); in check_symbol_table()
171 struct symbol_header *const hdr = sym->hdr; in _mesa_symbol_table_pop_scope() local
173 assert(hdr->symbols == sym); in _mesa_symbol_table_pop_scope()
175 hdr->symbols = sym->next_with_same_name; in _mesa_symbol_table_pop_scope()
209 struct symbol_header *const hdr = find_symbol(table, name); in _mesa_symbol_table_iterator_ctor() local
213 if (hdr != NULL) { in _mesa_symbol_table_iterator_ctor()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dx509v3.c187 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local
197 if (asn1_get_next(buf, len, &hdr) < 0 || in x509_parse_algorithm_identifier()
198 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_algorithm_identifier()
199 hdr.tag != ASN1_TAG_SEQUENCE) { in x509_parse_algorithm_identifier()
202 hdr.class, hdr.tag); in x509_parse_algorithm_identifier()
205 pos = hdr.payload; in x509_parse_algorithm_identifier()
206 end = pos + hdr.length; in x509_parse_algorithm_identifier()
226 struct asn1_hdr hdr; in x509_parse_public_key() local
239 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key()
240 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_public_key()
[all …]
Dasn1_test.c46 struct asn1_hdr hdr; in asn1_parse() local
60 if (asn1_get_next(pos, end - pos, &hdr) < 0) in asn1_parse()
64 pos = hdr.payload; in asn1_parse()
68 prefix, hdr.class, asn1_class_str(hdr.class), in asn1_parse()
69 hdr.constructed, in asn1_parse()
70 hdr.constructed ? "Constructed" : "Primitive", in asn1_parse()
71 hdr.tag, hdr.length); in asn1_parse()
73 if (hdr.class == ASN1_CLASS_CONTEXT_SPECIFIC && in asn1_parse()
74 hdr.constructed) { in asn1_parse()
75 if (asn1_parse(pos, hdr.length, level + 1) < 0) in asn1_parse()
[all …]
Dasn1.c23 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next() argument
28 os_memset(hdr, 0, sizeof(*hdr)); in asn1_get_next()
32 hdr->identifier = *pos++; in asn1_get_next()
33 hdr->class = hdr->identifier >> 6; in asn1_get_next()
34 hdr->constructed = !!(hdr->identifier & (1 << 5)); in asn1_get_next()
36 if ((hdr->identifier & 0x1f) == 0x1f) { in asn1_get_next()
37 hdr->tag = 0; in asn1_get_next()
47 hdr->tag = (hdr->tag << 7) | (tmp & 0x7f); in asn1_get_next()
50 hdr->tag = hdr->identifier & 0x1f; in asn1_get_next()
60 hdr->length = 0; in asn1_get_next()
[all …]
Dtlsv1_cred.c271 struct asn1_hdr hdr; in tlsv1_set_dhparams_der() local
285 if (asn1_get_next(pos, len, &hdr) < 0 || in tlsv1_set_dhparams_der()
286 hdr.class != ASN1_CLASS_UNIVERSAL || in tlsv1_set_dhparams_der()
287 hdr.tag != ASN1_TAG_SEQUENCE) { in tlsv1_set_dhparams_der()
290 hdr.class, hdr.tag); in tlsv1_set_dhparams_der()
293 pos = hdr.payload; in tlsv1_set_dhparams_der()
296 if (asn1_get_next(pos, end - pos, &hdr) < 0) in tlsv1_set_dhparams_der()
299 if (hdr.class != ASN1_CLASS_UNIVERSAL || in tlsv1_set_dhparams_der()
300 hdr.tag != ASN1_TAG_INTEGER) { in tlsv1_set_dhparams_der()
302 "class=%d tag=0x%x", hdr.class, hdr.tag); in tlsv1_set_dhparams_der()
[all …]
Drsa.c42 struct asn1_hdr hdr; in crypto_rsa_parse_integer() local
47 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in crypto_rsa_parse_integer()
48 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { in crypto_rsa_parse_integer()
50 "tag 0x%x", hdr.class, hdr.tag); in crypto_rsa_parse_integer()
54 if (bignum_set_unsigned_bin(num, hdr.payload, hdr.length) < 0) { in crypto_rsa_parse_integer()
59 return hdr.payload + hdr.length; in crypto_rsa_parse_integer()
73 struct asn1_hdr hdr; in crypto_rsa_import_public_key() local
95 if (asn1_get_next(buf, len, &hdr) < 0 || in crypto_rsa_import_public_key()
96 hdr.class != ASN1_CLASS_UNIVERSAL || in crypto_rsa_import_public_key()
97 hdr.tag != ASN1_TAG_SEQUENCE) { in crypto_rsa_import_public_key()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_common.c27 const struct eap_hdr *hdr; in eap_hdr_len_valid() local
33 hdr = wpabuf_head(msg); in eap_hdr_len_valid()
35 if (wpabuf_len(msg) < sizeof(*hdr)) { in eap_hdr_len_valid()
40 len = be_to_host16(hdr->length); in eap_hdr_len_valid()
41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) { in eap_hdr_len_valid()
69 const struct eap_hdr *hdr; in eap_hdr_validate() local
76 hdr = wpabuf_head(msg); in eap_hdr_validate()
77 len = be_to_host16(hdr->length); in eap_hdr_validate()
78 pos = (const u8 *) (hdr + 1); in eap_hdr_validate()
83 if (len < sizeof(*hdr) + 8) { in eap_hdr_validate()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Deap_common.c40 const struct eap_hdr *hdr; in eap_hdr_validate() local
44 hdr = wpabuf_head(msg); in eap_hdr_validate()
46 if (wpabuf_len(msg) < sizeof(*hdr)) { in eap_hdr_validate()
51 len = be_to_host16(hdr->length); in eap_hdr_validate()
52 if (len < sizeof(*hdr) + 1 || len > wpabuf_len(msg)) { in eap_hdr_validate()
57 pos = (const u8 *) (hdr + 1); in eap_hdr_validate()
62 if (len < sizeof(*hdr) + 8) { in eap_hdr_validate()
78 *plen = len - sizeof(*hdr) - 8; in eap_hdr_validate()
85 *plen = len - sizeof(*hdr) - 1; in eap_hdr_validate()
111 struct eap_hdr *hdr; in eap_msg_alloc() local
[all …]
/external/tcpdump/
Dprint-pflog.c98 pflog_print(const struct pfloghdr *hdr) in pflog_print() argument
102 rulenr = ntohl(hdr->rulenr); in pflog_print()
103 subrulenr = ntohl(hdr->subrulenr); in pflog_print()
107 printf("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr); in pflog_print()
110 tok2str(pf_reasons, "unkn(%u)", hdr->reason), in pflog_print()
111 tok2str(pf_actions, "unkn(%u)", hdr->action), in pflog_print()
112 tok2str(pf_directions, "unkn(%u)", hdr->dir), in pflog_print()
113 hdr->ifname); in pflog_print()
122 const struct pfloghdr *hdr; in pflog_if_print() local
132 hdr = (struct pfloghdr *)p; in pflog_if_print()
[all …]
Dprint-igrp.c82 register struct igrphdr *hdr; in igrp_print() local
86 hdr = (struct igrphdr *)bp; in igrp_print()
87 cp = (u_char *)(hdr + 1); in igrp_print()
91 TCHECK(*hdr); in igrp_print()
92 nint = EXTRACT_16BITS(&hdr->ig_ni); in igrp_print()
93 nsys = EXTRACT_16BITS(&hdr->ig_ns); in igrp_print()
94 next = EXTRACT_16BITS(&hdr->ig_nx); in igrp_print()
97 tok2str(op2str, "op-#%d", IGRP_OP(hdr->ig_vop)), in igrp_print()
98 IGRP_V(hdr->ig_vop), in igrp_print()
99 hdr->ig_ed, in igrp_print()
[all …]
/external/srtp/test/
Dsrtp_driver.c96 srtp_packet_to_string(srtp_hdr_t *hdr, int packet_len);
381 srtp_hdr_t *hdr; in srtp_create_test_packet() local
385 hdr = (srtp_hdr_t*) malloc(pkt_octet_len + bytes_in_hdr in srtp_create_test_packet()
387 if (!hdr) in srtp_create_test_packet()
390 hdr->version = 2; /* RTP version two */ in srtp_create_test_packet()
391 hdr->p = 0; /* no padding needed */ in srtp_create_test_packet()
392 hdr->x = 0; /* no header extension */ in srtp_create_test_packet()
393 hdr->cc = 0; /* no CSRCs */ in srtp_create_test_packet()
394 hdr->m = 0; /* marker bit */ in srtp_create_test_packet()
395 hdr->pt = 0xf; /* payload type */ in srtp_create_test_packet()
[all …]
Ddtls_srtp_driver.c217 srtp_hdr_t *hdr; in srtp_create_test_packet() local
221 hdr = malloc(pkt_octet_len + bytes_in_hdr in srtp_create_test_packet()
223 if (!hdr) in srtp_create_test_packet()
226 hdr->version = 2; /* RTP version two */ in srtp_create_test_packet()
227 hdr->p = 0; /* no padding needed */ in srtp_create_test_packet()
228 hdr->x = 0; /* no header extension */ in srtp_create_test_packet()
229 hdr->cc = 0; /* no CSRCs */ in srtp_create_test_packet()
230 hdr->m = 0; /* marker bit */ in srtp_create_test_packet()
231 hdr->pt = 0xf; /* payload type */ in srtp_create_test_packet()
232 hdr->seq = htons(0x1234); /* sequence number */ in srtp_create_test_packet()
[all …]
/external/libpcap/
Dsavefile.c856 struct pcap_file_header hdr; in sf_write_header() local
858 hdr.magic = TCPDUMP_MAGIC; in sf_write_header()
859 hdr.version_major = PCAP_VERSION_MAJOR; in sf_write_header()
860 hdr.version_minor = PCAP_VERSION_MINOR; in sf_write_header()
862 hdr.thiszone = thiszone; in sf_write_header()
863 hdr.snaplen = snaplen; in sf_write_header()
864 hdr.sigfigs = 0; in sf_write_header()
865 hdr.linktype = linktype; in sf_write_header()
867 if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1) in sf_write_header()
982 struct pcap_file_header hdr; in pcap_fopen_offline() local
[all …]
/external/qemu/audio/
Dwavaudio.c118 uint8_t hdr[] = { in wav_out_init() local
146 hdr[34] = bits16 ? 0x10 : 0x08; in wav_out_init()
159 le_store (hdr + 22, hw->info.nchannels, 2); in wav_out_init()
160 le_store (hdr + 24, hw->info.freq, 4); in wav_out_init()
161 le_store (hdr + 28, hw->info.freq << (bits16 + stereo), 4); in wav_out_init()
162 le_store (hdr + 32, 1 << (bits16 + stereo), 2); in wav_out_init()
173 qemu_put_buffer (wav->f, hdr, sizeof (hdr)); in wav_out_init()
251 uint8_t hdr[44]; in wav_in_init() local
262 if (qemu_get_buffer (wav->f, hdr, sizeof(hdr)) != (int)sizeof(hdr)) { in wav_in_init()
268 if ( hdr[0] != 'R' || hdr[1] != 'I' || hdr[2] != 'F' || hdr[3] != 'F' || in wav_in_init()
[all …]
/external/bluetooth/bluedroid/bta/av/
Dbta_av_api.c72 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable()
121 p_buf->hdr.layer_specific = chnl; in BTA_AvRegister()
122 p_buf->hdr.event = BTA_AV_API_REGISTER_EVT; in BTA_AvRegister()
175 p_buf->hdr.event = BTA_AV_API_OPEN_EVT; in BTA_AvOpen()
176 p_buf->hdr.layer_specific = handle; in BTA_AvOpen()
221 p_buf->hdr.event = BTA_AV_API_DISCONNECT_EVT; in BTA_AvDisconnect()
264 p_buf->hdr.event = BTA_AV_API_STOP_EVT; in BTA_AvStop()
291 p_buf->hdr.layer_specific = hndl; in BTA_AvReconfig()
292 p_buf->hdr.event = BTA_AV_API_RECONFIG_EVT; in BTA_AvReconfig()
319 p_buf->hdr.layer_specific = hndl; in BTA_AvProtectReq()
[all …]
/external/bluetooth/bluedroid/bta/jv/
Dbta_jv_int.h76 BT_HDR hdr; member
83 BT_HDR hdr; member
91 BT_HDR hdr; member
98 BT_HDR hdr; member
105 BT_HDR hdr; member
112 BT_HDR hdr; member
124 BT_HDR hdr; member
132 BT_HDR hdr; member
140 BT_HDR hdr; member
147 BT_HDR hdr; member
[all …]
/external/bluetooth/bluedroid/stack/mcap/
Dmca_cact.c131 p_msg->hdr.layer_specific = TRUE; /* mark this message as sent */ in mca_ccb_snd_req()
233 if (p_ccb->p_tx_req && !p_ccb->p_tx_req->hdr.layer_specific) in mca_ccb_cong()
255 BT_HDR *p_pkt = &p_data->hdr; in mca_ccb_hdl_req()
269 evt_data.hdr.op_code = *p++; in mca_ccb_hdl_req()
270 BE_STREAM_TO_UINT16 (evt_data.hdr.mdl_id, p); in mca_ccb_hdl_req()
271 reject_opcode = evt_data.hdr.op_code+1; in mca_ccb_hdl_req()
273 MCA_TRACE_DEBUG1 ("received mdl id: %d ", evt_data.hdr.mdl_id); in mca_ccb_hdl_req()
278 … if ((p_ccb->status == MCA_CCB_STAT_PENDING) && (evt_data.hdr.op_code == MCA_OP_MDL_ABORT_REQ)) in mca_ccb_hdl_req()
329 if (((evt_data.hdr.op_code >= MCA_NUM_STANDARD_OPCODE) && in mca_ccb_hdl_req()
330 (evt_data.hdr.op_code < MCA_FIRST_SYNC_OP)) || in mca_ccb_hdl_req()
[all …]
/external/bluetooth/bluedroid/bta/dm/
Dbta_dm_int.h135 BT_HDR hdr; member
142 BT_HDR hdr; member
149 BT_HDR hdr; member
159 BT_HDR hdr; member
167 BT_HDR hdr; member
186 BT_HDR hdr; member
200 BT_HDR hdr; member
215 BT_HDR hdr; member
225 BT_HDR hdr; member
232 BT_HDR hdr; member
[all …]
/external/libnfc-nci/src/nfa/int/
Dnfa_ee_int.h165 BT_HDR hdr; member
172 BT_HDR hdr; member
179 BT_HDR hdr; member
186 BT_HDR hdr; member
195 BT_HDR hdr; member
206 BT_HDR hdr; member
217 BT_HDR hdr; member
228 BT_HDR hdr; member
236 BT_HDR hdr; member
246 BT_HDR hdr; member
[all …]

12345678910>>...19