Home
last modified time | relevance | path

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

12345678910>>...15

/external/wpa_supplicant_8/src/tls/
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 …]
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 …]
Dasn1.c25 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next() argument
30 os_memset(hdr, 0, sizeof(*hdr)); in asn1_get_next()
34 hdr->identifier = *pos++; in asn1_get_next()
35 hdr->class = hdr->identifier >> 6; in asn1_get_next()
36 hdr->constructed = !!(hdr->identifier & (1 << 5)); in asn1_get_next()
38 if ((hdr->identifier & 0x1f) == 0x1f) { in asn1_get_next()
39 hdr->tag = 0; in asn1_get_next()
49 hdr->tag = (hdr->tag << 7) | (tmp & 0x7f); in asn1_get_next()
52 hdr->tag = hdr->identifier & 0x1f; in asn1_get_next()
62 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 …]
Dpkcs1.c205 struct asn1_hdr hdr; in pkcs1_v15_sig_ver() local
234 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 || in pkcs1_v15_sig_ver()
235 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver()
236 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver()
239 hdr.class, hdr.tag); in pkcs1_v15_sig_ver()
244 pos = hdr.payload; in pkcs1_v15_sig_ver()
245 end = pos + hdr.length; in pkcs1_v15_sig_ver()
255 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs1_v15_sig_ver()
256 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver()
257 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver()
[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 …]
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 …]
/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/mesa3d/src/gallium/auxiliary/util/
Du_debug_memory.c91 data_from_header(struct debug_memory_header *hdr) in data_from_header() argument
93 if(hdr) in data_from_header()
94 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); in data_from_header()
100 footer_from_header(struct debug_memory_header *hdr) in footer_from_header() argument
102 if(hdr) in footer_from_header()
103 …return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size… in footer_from_header()
113 struct debug_memory_header *hdr; in debug_malloc() local
116 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc()
117 if(!hdr) { in debug_malloc()
124 hdr->no = last_no++; in debug_malloc()
[all …]
/external/fio/
Dverify.c29 struct verify_header *hdr, unsigned int header_num,
91 struct verify_header *hdr; in fill_pattern_headers() local
99 hdr = p; in fill_pattern_headers()
100 populate_hdr(td, io_u, hdr, header_num, hdr_inc); in fill_pattern_headers()
181 static inline unsigned int hdr_size(struct verify_header *hdr) in hdr_size() argument
183 return __hdr_size(hdr->verify_type); in hdr_size()
186 static void *hdr_priv(struct verify_header *hdr) in hdr_priv() argument
188 void *priv = hdr; in hdr_priv()
268 static void dump_verify_buffers(struct verify_header *hdr, struct vcont *vc) in dump_verify_buffers() argument
282 hdr_offset = vc->hdr_num * hdr->len; in dump_verify_buffers()
[all …]
/external/libpcap/
Dsf-pcap.c123 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap);
154 struct pcap_file_header hdr; in pcap_check_header() local
183 hdr.magic = magic; in pcap_check_header()
184 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header()
185 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header()
186 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header()
194 (unsigned long)sizeof(hdr), in pcap_check_header()
205 hdr.version_major = SWAPSHORT(hdr.version_major); in pcap_check_header()
206 hdr.version_minor = SWAPSHORT(hdr.version_minor); in pcap_check_header()
207 hdr.thiszone = SWAPLONG(hdr.thiszone); in pcap_check_header()
[all …]
Dpcap-common.c1083 swap_linux_usb_header(const struct pcap_pkthdr *hdr, u_char *buf, in swap_linux_usb_header() argument
1102 if (hdr->caplen < offset) in swap_linux_usb_header()
1109 if (hdr->caplen < offset) in swap_linux_usb_header()
1116 if (hdr->caplen < offset) in swap_linux_usb_header()
1121 if (hdr->caplen < offset) in swap_linux_usb_header()
1126 if (hdr->caplen < offset) in swap_linux_usb_header()
1131 if (hdr->caplen < offset) in swap_linux_usb_header()
1136 if (hdr->caplen < offset) in swap_linux_usb_header()
1142 if (hdr->caplen < offset) in swap_linux_usb_header()
1147 if (hdr->caplen < offset) in swap_linux_usb_header()
[all …]
/external/vboot_reference/tests/
Dvboot_common3_tests.c34 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 …]
Dvb20_common3_tests.c40 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/fio/engines/
Dsg.c33 static void sgio_hdr_init(struct sgio_data *sd, struct sg_io_hdr *hdr, in sgio_hdr_init() argument
38 memset(hdr, 0, sizeof(*hdr)); in sgio_hdr_init()
41 hdr->interface_id = 'S'; in sgio_hdr_init()
42 hdr->cmdp = sc->cdb; in sgio_hdr_init()
43 hdr->cmd_len = sizeof(sc->cdb); in sgio_hdr_init()
44 hdr->pack_id = io_u->index; in sgio_hdr_init()
45 hdr->usr_ptr = io_u; in sgio_hdr_init()
48 hdr->dxferp = io_u->xfer_buf; in sgio_hdr_init()
49 hdr->dxfer_len = io_u->xfer_buflen; in sgio_hdr_init()
141 struct sg_io_hdr *hdr = (struct sg_io_hdr *) buf + i; in fio_sgio_getevents() local
[all …]
/external/vboot_reference/firmware/lib/
Dvboot_audio.c66 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/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/tcpdump/
Dprint-pflog.c94 pflog_print(const struct pfloghdr *hdr) in pflog_print() argument
98 rulenr = EXTRACT_32BITS(&hdr->rulenr); in pflog_print()
99 subrulenr = EXTRACT_32BITS(&hdr->subrulenr); in pflog_print()
103 printf("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr); in pflog_print()
106 tok2str(pf_reasons, "unkn(%u)", hdr->reason), in pflog_print()
107 tok2str(pf_actions, "unkn(%u)", hdr->action), in pflog_print()
108 tok2str(pf_directions, "unkn(%u)", hdr->dir), in pflog_print()
109 hdr->ifname); in pflog_print()
118 const struct pfloghdr *hdr; in pflog_if_print() local
128 hdr = (struct pfloghdr *)p; in pflog_if_print()
[all …]
Dprint-ipnet.c26 const ipnet_hdr_t *hdr; in ipnet_hdr_print() local
27 hdr = (const ipnet_hdr_t *)bp; in ipnet_hdr_print()
29 ND_PRINT((ndo, "%d > %d", hdr->iph_zsrc, hdr->iph_zdst)); in ipnet_hdr_print()
34 hdr->iph_family), in ipnet_hdr_print()
35 hdr->iph_family)); in ipnet_hdr_print()
40 hdr->iph_family))); in ipnet_hdr_print()
49 ipnet_hdr_t *hdr; in ipnet_print() local
61 hdr = (ipnet_hdr_t *)p; in ipnet_print()
64 switch (hdr->iph_family) { in ipnet_print()
78 ipnet_hdr_print(ndo, (u_char *)hdr, in ipnet_print()
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/skia/third_party/ktx/
Dktx.cpp384 Header hdr; in WriteETC1ToKTX() local
385 hdr.fGLType = 0; in WriteETC1ToKTX()
386 hdr.fGLTypeSize = 1; in WriteETC1ToKTX()
387 hdr.fGLFormat = 0; in WriteETC1ToKTX()
388 hdr.fGLInternalFormat = GR_GL_COMPRESSED_ETC1_RGB8; in WriteETC1ToKTX()
389 hdr.fGLBaseInternalFormat = GR_GL_RGB; in WriteETC1ToKTX()
390 hdr.fPixelWidth = width; in WriteETC1ToKTX()
391 hdr.fPixelHeight = height; in WriteETC1ToKTX()
392 hdr.fNumberOfArrayElements = 0; in WriteETC1ToKTX()
393 hdr.fNumberOfFaces = 1; in WriteETC1ToKTX()
[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/lldb/tools/debugserver/source/MacOSX/
DMachException.cpp185 exc_msg.hdr.msgh_bits, in Dump()
186 exc_msg.hdr.msgh_size, in Dump()
187 exc_msg.hdr.msgh_remote_port, in Dump()
188 exc_msg.hdr.msgh_local_port, in Dump()
189 exc_msg.hdr.msgh_reserved, in Dump()
190 exc_msg.hdr.msgh_id); in Dump()
194 reply_msg.hdr.msgh_bits, in Dump()
195 reply_msg.hdr.msgh_size, in Dump()
196 reply_msg.hdr.msgh_remote_port, in Dump()
197 reply_msg.hdr.msgh_local_port, in Dump()
[all …]
/external/kernel-headers/original/uapi/linux/
Dtarget_core_user.h72 static inline enum tcmu_opcode tcmu_hdr_get_op(struct tcmu_cmd_entry_hdr *hdr) in tcmu_hdr_get_op() argument
74 return hdr->len_op & TCMU_OP_MASK; in tcmu_hdr_get_op()
77 static inline void tcmu_hdr_set_op(struct tcmu_cmd_entry_hdr *hdr, enum tcmu_opcode op) in tcmu_hdr_set_op() argument
79 hdr->len_op &= ~TCMU_OP_MASK; in tcmu_hdr_set_op()
80 hdr->len_op |= (op & TCMU_OP_MASK); in tcmu_hdr_set_op()
83 static inline __u32 tcmu_hdr_get_len(struct tcmu_cmd_entry_hdr *hdr) in tcmu_hdr_get_len() argument
85 return hdr->len_op & ~TCMU_OP_MASK; in tcmu_hdr_get_len()
88 static inline void tcmu_hdr_set_len(struct tcmu_cmd_entry_hdr *hdr, __u32 len) in tcmu_hdr_set_len() argument
90 hdr->len_op &= TCMU_OP_MASK; in tcmu_hdr_set_len()
91 hdr->len_op |= len; in tcmu_hdr_set_len()
[all …]

12345678910>>...15