Home
last modified time | relevance | path

Searched refs:fec_header (Results 1 – 4 of 4) sorted by relevance

/system/extras/verity/fec/
Dimage.cpp226 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_load()
229 fec_header *p = (fec_header *)header; in image_ecc_load()
245 if (p->size != sizeof(fec_header)) { in image_ecc_load()
294 assert(2 * sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_save()
298 fec_header *f = (fec_header *)header; in image_ecc_save()
302 f->size = sizeof(fec_header); in image_ecc_save()
310 memcpy(&header[sizeof(header) - sizeof(fec_header)], header, in image_ecc_save()
311 sizeof(fec_header)); in image_ecc_save()
/system/extras/libfec/
Dfec_open.cpp103 check(f->size > sizeof(fec_header)); in parse_ecc_header()
107 if (offset > f->size - sizeof(fec_header)) { in parse_ecc_header()
111 fec_header header; in parse_ecc_header()
115 if (!raw_pread(f->fd, &header, sizeof(fec_header), offset)) { in parse_ecc_header()
130 if (header.size != sizeof(fec_header)) { in parse_ecc_header()
210 if (parse_ecc_header(f, offset + FEC_BLOCKSIZE - sizeof(fec_header)) == 0) { in parse_ecc()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc161 sizeof(fec_header), in LoadVerityConfig()
163 const fec_header* header = in LoadVerityConfig()
164 reinterpret_cast<const fec_header*>(fec_metadata.data()); in LoadVerityConfig()
/system/extras/libfec/include/fec/
Dio.h45 struct fec_header { struct