Home
last modified time | relevance | path

Searched refs:roots (Results 1 – 18 of 18) sorted by relevance

/system/extras/libfec/include/fec/
Decc.h30 #define FEC_PARAMS(roots) \ argument
35 (roots), /* polynomial degree (number of roots) */ \
57 inline uint64_t fec_ecc_get_size(uint64_t file_size, int roots) in fec_ecc_get_size() argument
60 FEC_RSM - roots) in fec_ecc_get_size()
61 * roots * FEC_BLOCKSIZE in fec_ecc_get_size()
Dio.h49 uint32_t roots; member
65 uint32_t roots; member
91 int flags, int roots);
127 int roots = FEC_DEFAULT_ROOTS) : handle_(nullptr, fec_close) { in handle_()
128 open(fn, mode, flags, roots); in handle_()
136 int roots = FEC_DEFAULT_ROOTS)
139 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
/system/extras/verity/fec/tests/
Dfec.py24 roots = 2 variable
33 def corruptmax(image, roots): argument
37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
39 max_errors = int(math.floor(rounds * roots / 2)) * blocksize
44 def encode(image, fec, roots): argument
45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0:
70 encode(image, temp_fec.name, roots)
71 corruptmax(temp_cor.name, roots)
/system/extras/libfec/
Dfec_open.cpp36 using size_func = uint64_t (*)(uint64_t size, int roots);
41 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, in find_offset() argument
55 uint64_t mi = get_appr_size(file_size, roots); in find_offset()
61 uint64_t total = mi + get_real_size(mi, roots); in find_offset()
132 if (header.roots == 0 || header.roots >= FEC_RSM) { in parse_ecc_header()
133 error("invalid ecc roots: %u", header.roots); in parse_ecc_header()
136 if (f->ecc.roots != (int)header.roots) { in parse_ecc_header()
137 error("unexpected number of roots: %d vs %u", f->ecc.roots, in parse_ecc_header()
138 header.roots); in parse_ecc_header()
141 if (header.fec_size % header.roots || in parse_ecc_header()
[all …]
Dfec_read.cpp142 if (use_erasures && neras <= e->roots) { in __ecc_read()
145 } else if (use_erasures && neras <= e->roots && in __ecc_read()
163 if (!raw_pread(f, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
164 e->start + (i + rsb) * e->roots)) { in __ecc_read()
192 check(rc <= (use_erasures ? e->roots : e->roots / 2)); in __ecc_read()
213 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init()
Dfec_private.h69 int roots; member
/system/extras/verity/fec/
Dimage.cpp147 assert(ctx->roots > 0 && ctx->roots < FEC_RSM); in image_load()
148 ctx->rs_n = FEC_RSM - ctx->roots; in image_load()
197 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE; in image_ecc_new()
250 if (p->roots == 0 || p->roots >= FEC_RSM) { in image_ecc_load()
251 FATAL("invalid roots in '%s': %u\n", filename.c_str(), p->roots); in image_ecc_load()
254 if (p->fec_size % p->roots || p->fec_size % FEC_BLOCKSIZE) { in image_ecc_load()
258 ctx->roots = (int)p->roots; in image_ecc_load()
259 ctx->rs_n = FEC_RSM - ctx->roots; in image_ecc_load()
303 f->roots = ctx->roots; in image_ecc_save()
396 args[i].fec_pos = current * ctx->roots; in image_process()
[all …]
Dmain.cpp55 ctx->fec_pos += fcx->roots; in encode_rs()
63 uint8_t data[fcx->rs_n + fcx->roots]; in decode_rs()
73 memcpy(&data[fcx->rs_n], &fcx->fec[ctx->fec_pos], fcx->roots); in decode_rs()
88 ctx->fec_pos += fcx->roots; in decode_rs()
139 printf("%" PRIu64 "\n", fec_ecc_get_size(ctx.inp_size, ctx.roots)); in print_size()
278 ctx.roots = FEC_DEFAULT_ROOTS; in main()
319 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main()
367 assert(ctx.roots > 0 && ctx.roots < FEC_RSM); in main()
Dimage.h50 int roots; member
/system/extras/libfec/test/
Dtest_rs.c31 #define FEC_PARAMS(roots) \ argument
32 8, 0x11d, 0, 1, (roots), 0
/system/ca-certificates/google/
DREADME2 manually synchronized with https://pki.google.com/roots.pem. See
/system/tools/hidl/scripts/
Dgen-docs.sh51 local roots=(
/system/tools/hidl/
DREADME.md27 Some defaults for package roots are also provided
/system/core/libmemunreachable/
DREADME.md68 …11. A list of all roots is produced from globals (.data and .bss sections of binaries), and regist…
69 12. The mark-and-sweep pass is performed starting from roots.
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc213 part.verity.fec_roots = ecc_data.roots; in LoadVerityConfig()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp213 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
218 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
/system/update_engine/
Dupdate_metadata.proto280 // The number of FEC roots.
/system/update_engine/update_engine/
Dupdate_metadata.proto280 // The number of FEC roots.