Home
last modified time | relevance | path

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

/system/extras/libfec/
Dfec_open.cpp102 check(f->ecc.rsn > 0 && f->ecc.rsn < FEC_RSM); in parse_ecc_header()
138 if (f->ecc.roots != (int)header.roots) { in parse_ecc_header()
139 error("unexpected number of roots: %d vs %u", f->ecc.roots, in parse_ecc_header()
150 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header()
151 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header()
154 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
159 f->ecc.size = header.fec_size; in parse_ecc_header()
160 f->ecc.start = header.inp_size; in parse_ecc_header()
170 while (n < f->ecc.size) { in parse_ecc_header()
171 if (len > f->ecc.size - n) { in parse_ecc_header()
[all …]
Davb_utils.cpp128 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_avb_image()
129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
130 f->ecc.size = hashtree_descriptor.fec_size; in parse_avb_image()
131 f->ecc.start = hashtree_descriptor.fec_offset; in parse_avb_image()
133 f->ecc.valid = true; in parse_avb_image()
Dfec_read.cpp111 ecc_info *e = &f->ecc; in __ecc_read()
213 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init()
300 if (f->ecc.start && ecc_init(f, rs, ecc_data) == -1) { in verity_read()
347 if (!f->ecc.start) { in verity_read()
535 } else if (f->ecc.start) { in fec_pread()
536 check(f->ecc.start < f->size); in fec_pread()
Dfec_private.h135 ecc_info ecc; member