/system/extras/libfec/include/fec/ |
D | ecc.h | 30 #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()
|
D | io.h | 49 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/ |
D | fec.py | 24 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/ |
D | fec_open.cpp | 36 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 …]
|
D | fec_read.cpp | 142 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()
|
D | fec_private.h | 69 int roots; member
|
/system/extras/verity/fec/ |
D | image.cpp | 147 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 …]
|
D | main.cpp | 55 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()
|
D | image.h | 50 int roots; member
|
/system/extras/libfec/test/ |
D | test_rs.c | 31 #define FEC_PARAMS(roots) \ argument 32 8, 0x11d, 0, 1, (roots), 0
|
/system/ca-certificates/google/ |
D | README | 2 manually synchronized with https://pki.google.com/roots.pem. See
|
/system/tools/hidl/scripts/ |
D | gen-docs.sh | 51 local roots=(
|
/system/tools/hidl/ |
D | README.md | 27 Some defaults for package roots are also provided
|
/system/core/libmemunreachable/ |
D | README.md | 68 …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/ |
D | payload_generation_config_android.cc | 213 part.verity.fec_roots = ecc_data.roots; in LoadVerityConfig()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 213 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/ |
D | update_metadata.proto | 280 // The number of FEC roots.
|
/system/update_engine/update_engine/ |
D | update_metadata.proto | 280 // The number of FEC roots.
|