Home
last modified time | relevance | path

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

/system/extras/verity/fec/
Dimage.cpp349 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in mmap_image_ecc_new()
416 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_load()
419 fec_header *p = (fec_header *)header; in image_ecc_load()
435 if (p->size != sizeof(fec_header)) { in image_ecc_load()
484 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_save()
495 fec_header *f = (fec_header *)p; in image_ecc_save()
499 f->size = sizeof(fec_header); in image_ecc_save()
507 memcpy(&p[sizeof(header) - sizeof(fec_header)], p, 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()
217 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