Home
last modified time | relevance | path

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

12345678910>>...14

/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/bluetooth/hcidump/parser/
Davdtp.c73 static char *pt2str(uint8_t hdr) in pt2str() argument
75 switch (hdr & 0x0c) { in pt2str()
89 static char *mt2str(uint8_t hdr) in mt2str() argument
91 switch (hdr & 0x03) { in mt2str()
291 static inline void discover(int level, uint8_t hdr, struct frame *frm) in discover() argument
295 switch (hdr & 0x03) { in discover()
313 static inline void get_capabilities(int level, uint8_t hdr, struct frame *frm) in get_capabilities() argument
315 switch (hdr & 0x03) { in get_capabilities()
328 static inline void set_configuration(int level, uint8_t hdr, struct frame *frm) in set_configuration() argument
332 switch (hdr & 0x03) { in set_configuration()
[all …]
/external/bluetooth/bluez/sbc/
Dsbcinfo.c64 static int calc_frame_len(struct sbc_frame_hdr *hdr) in calc_frame_len() argument
68 nrof_subbands = (hdr->subbands + 1) * 4; in calc_frame_len()
69 nrof_blocks = (hdr->blocks + 1) * 4; in calc_frame_len()
71 switch (hdr->channel_mode) { in calc_frame_len()
74 tmp = nrof_blocks * hdr->bitpool; in calc_frame_len()
77 tmp = nrof_blocks * hdr->bitpool * 2; in calc_frame_len()
80 tmp = nrof_blocks * hdr->bitpool; in calc_frame_len()
83 tmp = nrof_blocks * hdr->bitpool + nrof_subbands; in calc_frame_len()
92 static double calc_bit_rate(struct sbc_frame_hdr *hdr) in calc_bit_rate() argument
97 nrof_subbands = (hdr->subbands + 1) * 4; in calc_bit_rate()
[all …]
/external/bluetooth/bluez/test/
Davtest.c182 static void dump_avctp_header(struct avctp_header *hdr) in dump_avctp_header() argument
184 printf("TL %d PT %d CR %d IPID %d PID 0x%04x\n", hdr->transaction, in dump_avctp_header()
185 hdr->packet_type, hdr->cr, hdr->ipid, ntohs(hdr->pid)); in dump_avctp_header()
188 static void dump_avdtp_header(struct avdtp_header *hdr) in dump_avdtp_header() argument
190 printf("TL %d PT %d MT %d SI %d\n", hdr->transaction, in dump_avdtp_header()
191 hdr->packet_type, hdr->message_type, hdr->signal_id); in dump_avdtp_header()
210 struct avdtp_header *hdr = (void *) buf; in process_avdtp() local
219 dump_avdtp_header(hdr); in process_avdtp()
221 if (hdr->packet_type != AVDTP_PKT_TYPE_SINGLE) { in process_avdtp()
226 if (hdr->message_type != AVDTP_MSG_TYPE_COMMAND) { in process_avdtp()
[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/wpa_supplicant_8/src/eap_common/
Deap_common.c34 const struct eap_hdr *hdr; in eap_hdr_validate() local
38 hdr = wpabuf_head(msg); in eap_hdr_validate()
40 if (wpabuf_len(msg) < sizeof(*hdr)) { in eap_hdr_validate()
45 len = be_to_host16(hdr->length); in eap_hdr_validate()
46 if (len < sizeof(*hdr) + 1 || len > wpabuf_len(msg)) { in eap_hdr_validate()
51 pos = (const u8 *) (hdr + 1); in eap_hdr_validate()
56 if (len < sizeof(*hdr) + 8) { in eap_hdr_validate()
72 *plen = len - sizeof(*hdr) - 8; in eap_hdr_validate()
79 *plen = len - sizeof(*hdr) - 1; in eap_hdr_validate()
105 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/bluetooth/bluez/plugins/
Dmgmtops.c81 struct mgmt_hdr hdr; in read_version_complete() local
94 memset(&hdr, 0, sizeof(hdr)); in read_version_complete()
95 hdr.opcode = htobs(MGMT_OP_READ_INDEX_LIST); in read_version_complete()
96 hdr.index = htobs(MGMT_INDEX_NONE); in read_version_complete()
97 if (write(sk, &hdr, sizeof(hdr)) < 0) in read_version_complete()
119 struct mgmt_hdr hdr; in read_info() local
121 memset(&hdr, 0, sizeof(hdr)); in read_info()
122 hdr.opcode = htobs(MGMT_OP_READ_INFO); in read_info()
123 hdr.index = htobs(index); in read_info()
125 if (write(sk, &hdr, sizeof(hdr)) < 0) in read_info()
[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/e2fsprogs/e2fsck/
Dmtrace.c86 __ptr_t hdr; local
89 hdr = (__ptr_t) malloc (size);
93 fprintf (mallstream, "+ %p %d\n", hdr, size);
95 if (hdr == mallwatch)
98 return hdr;
107 __ptr_t hdr; local
115 hdr = (__ptr_t) realloc (ptr, size);
119 if (hdr == NULL)
123 fprintf (mallstream, "< %p\n> %p %d\n", ptr, hdr, size);
125 if (hdr == mallwatch)
[all …]

12345678910>>...14