Home
last modified time | relevance | path

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

/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/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.h48 uint32_t roots; member
64 uint32_t roots; member
90 int flags, int roots);
126 int roots = FEC_DEFAULT_ROOTS) : handle_(nullptr, fec_close) { in handle_()
127 open(fn, mode, flags, roots); in handle_()
135 int roots = FEC_DEFAULT_ROOTS)
138 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
/system/extras/libfec/
Dfec_open.cpp38 using size_func = uint64_t (*)(uint64_t size, int roots);
43 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, in find_offset() argument
57 uint64_t mi = get_appr_size(file_size, roots); in find_offset()
63 uint64_t total = mi + get_real_size(mi, roots); in find_offset()
134 if (header.roots == 0 || header.roots >= FEC_RSM) { in parse_ecc_header()
135 error("invalid ecc roots: %u", header.roots); 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()
140 header.roots); in parse_ecc_header()
143 if (header.fec_size % header.roots || in parse_ecc_header()
[all …]
Dfec_read.cpp140 if (use_erasures && neras <= e->roots) { in __ecc_read()
143 } else if (use_erasures && neras <= e->roots && in __ecc_read()
161 if (!raw_pread(f, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
162 e->start + (i + rsb) * e->roots)) { in __ecc_read()
190 check(rc <= (use_erasures ? e->roots : e->roots / 2)); in __ecc_read()
211 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init()
Dfec_private.h69 int roots; member
/system/extras/verity/fec/
Dmain.cpp56 ctx->fec_pos += fcx->roots; in encode_rs()
64 uint8_t data[fcx->rs_n + fcx->roots]; in decode_rs()
74 memcpy(&data[fcx->rs_n], &fcx->fec[ctx->fec_pos], fcx->roots); in decode_rs()
89 ctx->fec_pos += fcx->roots; in decode_rs()
139 printf("%" PRIu64 "\n", fec_ecc_get_size(ctx.inp_size, ctx.roots)); in print_size()
274 ctx.roots = FEC_DEFAULT_ROOTS; in main()
315 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main()
360 assert(ctx.roots > 0 && ctx.roots < FEC_RSM); in main()
Dimage.cpp282 assert(ctx->roots > 0 && ctx->roots < FEC_RSM); in image_load()
283 ctx->rs_n = FEC_RSM - ctx->roots; in image_load()
391 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE; in image_ecc_new()
440 if (p->roots == 0 || p->roots >= FEC_RSM) { in image_ecc_load()
441 FATAL("invalid roots in '%s': %u\n", filename.c_str(), p->roots); in image_ecc_load()
444 if (p->fec_size % p->roots || p->fec_size % FEC_BLOCKSIZE) { in image_ecc_load()
448 ctx->roots = (int)p->roots; in image_ecc_load()
449 ctx->rs_n = FEC_RSM - ctx->roots; in image_ecc_load()
500 f->roots = ctx->roots; in image_ecc_save()
581 args[i].fec_pos = current * ctx->roots; in image_process()
[all …]
Dimage.h52 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/core/libmemunreachable/
DREADME.md47 …11. A list of all roots is produced from globals (.data and .bss sections of binaries), and regist…
48 12. The mark-and-sweep pass is performed starting from roots.
/system/core/fs_mgr/
Dfs_mgr_verity.cpp258 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
263 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()