Searched refs:fec_size (Results 1 – 6 of 6) sorted by relevance
/system/extras/verity/fec/ |
D | image.cpp | 197 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE; in image_ecc_new() 200 INFO("allocating %u bytes of memory\n", ctx->fec_size); in image_ecc_new() 203 ctx->fec = new uint8_t[ctx->fec_size]; in image_ecc_new() 206 FATAL("failed to allocate %u bytes\n", ctx->fec_size); in image_ecc_new() 254 if (p->fec_size % p->roots || p->fec_size % FEC_BLOCKSIZE) { in image_ecc_load() 255 FATAL("invalid length in '%s': %u\n", filename.c_str(), p->fec_size); in image_ecc_load() 267 if (p->fec_size != ctx->fec_size) { in image_ecc_load() 275 if (!android::base::ReadFully(fd, ctx->fec, ctx->fec_size)) { in image_ecc_load() 276 FATAL("failed to read %u bytes from '%s': %s\n", ctx->fec_size, in image_ecc_load() 283 SHA256(ctx->fec, ctx->fec_size, hash); in image_ecc_load() [all …]
|
D | image.h | 54 uint32_t fec_size; member
|
D | main.cpp | 198 INFO("\traw fec size: %u\n", ctx.fec_size); in encode() 247 INFO("\traw fec size: %u\n", ctx.fec_size); in decode()
|
/system/extras/libfec/ |
D | fec_open.cpp | 144 if (header.fec_size % header.roots || in parse_ecc_header() 145 header.fec_size % FEC_BLOCKSIZE) { in parse_ecc_header() 146 error("inconsistent ecc size %u", header.fec_size); in parse_ecc_header() 154 if (header.fec_size != in parse_ecc_header() 156 error("inconsistent ecc size %u", header.fec_size); in parse_ecc_header() 160 f->ecc.size = header.fec_size; in parse_ecc_header()
|
/system/extras/libfec/include/fec/ |
D | io.h | 50 uint32_t fec_size; member
|
/system/core/fs_mgr/ |
D | fs_mgr_avb.cpp | 277 if (hashtree_desc.fec_size > 0) { in construct_verity_table()
|