Home
last modified time | relevance | path

Searched refs:fec_header (Results 1 – 3 of 3) 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, &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/extras/libfec/include/fec/
Dio.h44 struct fec_header { struct