/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 || in tls_process_ocsp_single_response() 142 hdr.class != ASN1_CLASS_UNIVERSAL || in tls_process_ocsp_single_response() 143 hdr.tag != ASN1_TAG_SEQUENCE) { in tls_process_ocsp_single_response() 146 hdr.class, hdr.tag); in tls_process_ocsp_single_response() 149 pos = hdr.payload; in tls_process_ocsp_single_response() 150 end = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 165 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response() 166 hdr.class != ASN1_CLASS_UNIVERSAL || in tls_process_ocsp_single_response() 167 hdr.tag != ASN1_TAG_OCTETSTRING) { 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 || in pkcs12_certbag() 459 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs12_certbag() 460 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs12_certbag() 463 hdr.class, hdr.tag); in pkcs12_certbag() 467 pos = hdr.payload; in pkcs12_certbag() 468 end = hdr.payload + hdr.length; in pkcs12_certbag() 485 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs12_certbag() 486 hdr.class != ASN1_CLASS_CONTEXT_SPECIFIC || in pkcs12_certbag() 487 hdr.tag != 0) { in pkcs12_certbag() [all …]
|
D | x509v3.c | 185 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local 195 if (asn1_get_next(buf, len, &hdr) < 0 || in x509_parse_algorithm_identifier() 196 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_algorithm_identifier() 197 hdr.tag != ASN1_TAG_SEQUENCE) { in x509_parse_algorithm_identifier() 200 hdr.class, hdr.tag); in x509_parse_algorithm_identifier() 203 if (hdr.length > buf + len - hdr.payload) in x509_parse_algorithm_identifier() 205 pos = hdr.payload; in x509_parse_algorithm_identifier() 206 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() [all …]
|
D | pkcs8.c | 21 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 …]
|
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 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params_pbes2() 111 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params_pbes2() 114 hdr.class, hdr.tag); in pkcs5_get_params_pbes2() 117 pos = hdr.payload; in pkcs5_get_params_pbes2() 118 end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 120 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2() 121 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params_pbes2() 122 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params_pbes2() [all …]
|
D | asn1.c | 25 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 …]
|
D | pkcs1.c | 205 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 …]
|
D | rsa.c | 34 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/ |
D | symbol_table.c | 50 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/ |
D | u_debug_memory.c | 91 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/ |
D | verify.c | 29 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/opencv3/3rdparty/openexr/IlmImf/ |
D | ImfCRgbaFile.cpp | 84 header (ImfHeader *hdr) in header() argument 86 return (Imf::Header *)(hdr); in header() 91 header (const ImfHeader *hdr) in header() argument 93 return (const Imf::Header *)(hdr); in header() 202 ImfDeleteHeader (ImfHeader *hdr) in ImfDeleteHeader() argument 204 delete header (hdr); in ImfDeleteHeader() 209 ImfCopyHeader (const ImfHeader *hdr) in ImfCopyHeader() argument 213 return (ImfHeader *) new Imf::Header (*header (hdr)); in ImfCopyHeader() 224 ImfHeaderSetDisplayWindow (ImfHeader *hdr, in ImfHeaderSetDisplayWindow() argument 228 header(hdr)->displayWindow() = Box2i (V2i (xMin, yMin), V2i (xMax, yMax)); in ImfHeaderSetDisplayWindow() [all …]
|
D | ImfCRgbaFile.h | 156 void ImfDeleteHeader (ImfHeader *hdr); 158 ImfHeader * ImfCopyHeader (const ImfHeader *hdr); 160 void ImfHeaderSetDisplayWindow (ImfHeader *hdr, 164 void ImfHeaderDisplayWindow (const ImfHeader *hdr, 168 void ImfHeaderSetDataWindow (ImfHeader *hdr, 172 void ImfHeaderDataWindow (const ImfHeader *hdr, 176 void ImfHeaderSetPixelAspectRatio (ImfHeader *hdr, 179 float ImfHeaderPixelAspectRatio (const ImfHeader *hdr); 181 void ImfHeaderSetScreenWindowCenter (ImfHeader *hdr, 184 void ImfHeaderScreenWindowCenter (const ImfHeader *hdr, [all …]
|
D | ImfCompressor.cpp | 56 Compressor::Compressor (const Header &hdr): _header (hdr) {} in Compressor() argument 113 newCompressor (Compression c, size_t maxScanLineSize, const Header &hdr) in newCompressor() argument 119 return new RleCompressor (hdr, maxScanLineSize); in newCompressor() 123 return new ZipCompressor (hdr, maxScanLineSize, 1); in newCompressor() 127 return new ZipCompressor (hdr, maxScanLineSize, 16); in newCompressor() 131 return new PizCompressor (hdr, maxScanLineSize, 32); in newCompressor() 135 return new Pxr24Compressor (hdr, maxScanLineSize, 16); in newCompressor() 139 return new B44Compressor (hdr, maxScanLineSize, 32, false); in newCompressor() 143 return new B44Compressor (hdr, maxScanLineSize, 32, true); in newCompressor() 156 const Header &hdr) in newTileCompressor() argument [all …]
|
/external/libpcap/ |
D | sf-pcap.c | 123 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 …]
|
/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/fio/engines/ |
D | sg.c | 33 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/ |
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/srtp/test/ |
D | srtp_driver.c | 96 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 …]
|
/external/skia/third_party/ktx/ |
D | ktx.cpp | 384 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/tcpdump/ |
D | print-pflog.c | 88 pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) in pflog_print() argument 92 rulenr = EXTRACT_32BITS(&hdr->rulenr); in pflog_print() 93 subrulenr = EXTRACT_32BITS(&hdr->subrulenr); in pflog_print() 97 ND_PRINT((ndo, "rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr)); in pflog_print() 100 tok2str(pf_reasons, "unkn(%u)", hdr->reason), in pflog_print() 101 tok2str(pf_actions, "unkn(%u)", hdr->action), in pflog_print() 102 tok2str(pf_directions, "unkn(%u)", hdr->dir), in pflog_print() 103 hdr->ifname)); in pflog_print() 113 const struct pfloghdr *hdr; in pflog_if_print() local 123 hdr = (struct pfloghdr *)p; in pflog_if_print() [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_common.c | 27 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/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtp_format_vp9.cc | 38 uint8_t TemporalIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in TemporalIdxField() argument 39 return (hdr.temporal_idx == kNoTemporalIdx) ? def : hdr.temporal_idx; in TemporalIdxField() 42 uint8_t SpatialIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in SpatialIdxField() argument 43 return (hdr.spatial_idx == kNoSpatialIdx) ? def : hdr.spatial_idx; in SpatialIdxField() 46 int16_t Tl0PicIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in Tl0PicIdxField() argument 47 return (hdr.tl0_pic_idx == kNoTl0PicIdx) ? def : hdr.tl0_pic_idx; in Tl0PicIdxField() 58 size_t PictureIdLength(const RTPVideoHeaderVP9& hdr) { in PictureIdLength() argument 59 if (hdr.picture_id == kNoPictureId) in PictureIdLength() 61 return (hdr.max_picture_id == kMaxOneBytePictureId) ? 1 : 2; in PictureIdLength() 64 bool PictureIdPresent(const RTPVideoHeaderVP9& hdr) { in PictureIdPresent() argument [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | virtio_gpu.h | 110 struct virtio_gpu_ctrl_hdr hdr; member 129 struct virtio_gpu_ctrl_hdr hdr; member 136 struct virtio_gpu_ctrl_hdr hdr; member 145 struct virtio_gpu_ctrl_hdr hdr; member 153 struct virtio_gpu_ctrl_hdr hdr; member 161 struct virtio_gpu_ctrl_hdr hdr; member 176 struct virtio_gpu_ctrl_hdr hdr; member 183 struct virtio_gpu_ctrl_hdr hdr; member 191 struct virtio_gpu_ctrl_hdr hdr; member 208 struct virtio_gpu_ctrl_hdr hdr; member [all …]
|