HomeSort by relevance Sort by last modified time
    Searched refs:FEC_BLOCKSIZE (Results 1 - 11 of 11) sorted by null

  /system/extras/libfec/include/fec/
ecc.h 53 return (offset / rsn) + (offset % rsn) * rounds * FEC_BLOCKSIZE;
59 return fec_div_round_up(fec_div_round_up(file_size, FEC_BLOCKSIZE),
61 * roots * FEC_BLOCKSIZE
62 + FEC_BLOCKSIZE;
io.h 38 #define FEC_BLOCKSIZE 4096
  /system/extras/libfec/
fec_verity.cpp 98 uint64_t hashes = file_size / FEC_BLOCKSIZE;
105 hashes = fec_div_round_up(hashes * SHA256_DIGEST_LENGTH, FEC_BLOCKSIZE);
115 return total * FEC_BLOCKSIZE;
118 /* computes a SHA-256 salted with `f->verity.salt' from a FEC_BLOCKSIZE byte
131 SHA256_Update(&ctx, block, FEC_BLOCKSIZE);
138 /* computes a verity hash for FEC_BLOCKSIZE bytes from buffer `block' and
173 if (fec_pread(f, data, FEC_BLOCKSIZE, data_offset) != FEC_BLOCKSIZE) {
187 uint8_t data[FEC_BLOCKSIZE];
198 verity_get_size(v->data_blocks * FEC_BLOCKSIZE, &levels, NULL)
    [all...]
fec_read.cpp 80 uint64_t n = offset / FEC_BLOCKSIZE;
95 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH;
98 v->hash_data_blocks * FEC_BLOCKSIZE - SHA256_DIGEST_LENGTH)) {
110 check(offset % FEC_BLOCKSIZE == 0);
115 uint64_t rsb = offset - (offset / (e->rounds * FEC_BLOCKSIZE)) *
116 e->rounds * FEC_BLOCKSIZE;
134 uint8_t bbuf[FEC_BLOCKSIZE] = {0};
138 if (!raw_pread(f, bbuf, FEC_BLOCKSIZE, interleaved)) {
151 for (int j = 0; j < FEC_BLOCKSIZE; ++j) {
161 for (int i = 0; i < FEC_BLOCKSIZE; ++i)
    [all...]
fec_open.cpp 51 if (file_size % FEC_BLOCKSIZE) {
53 error("file size not multiple of " stringify(FEC_BLOCKSIZE));
63 mi = ((hi + lo) / (2 * FEC_BLOCKSIZE)) * FEC_BLOCKSIZE;
67 lo = mi + FEC_BLOCKSIZE;
122 offset -= offset % FEC_BLOCKSIZE;
145 header.fec_size % FEC_BLOCKSIZE) {
151 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE);
155 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) {
167 uint8_t buf[FEC_BLOCKSIZE];
    [all...]
fec_process.cpp 62 uint64_t start = (offset / FEC_BLOCKSIZE) * FEC_BLOCKSIZE;
63 size_t blocks = fec_div_round_up(count, FEC_BLOCKSIZE);
65 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE;
fec_private.h 47 #define VERITY_METADATA_SIZE (8 * FEC_BLOCKSIZE)
  /system/extras/verity/fec/
image.cpp 71 } else if (size % FEC_BLOCKSIZE) {
73 size, FEC_BLOCKSIZE);
77 ctx->blocks = fec_div_round_up(ctx->inp_size, FEC_BLOCKSIZE);
84 assert(len % FEC_BLOCKSIZE == 0);
197 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE;
221 if (lseek64(fd, -FEC_BLOCKSIZE, SEEK_END) < 0) {
226 assert(sizeof(fec_header) <= FEC_BLOCKSIZE);
228 uint8_t header[FEC_BLOCKSIZE];
254 if (p->fec_size % p->roots || p->fec_size % FEC_BLOCKSIZE) {
294 assert(2 * sizeof(fec_header) <= FEC_BLOCKSIZE);
    [all...]
main.cpp 351 if (ctx.padding % FEC_BLOCKSIZE) {
352 FATAL("padding must be multiple of %u\n", FEC_BLOCKSIZE);
  /system/extras/libfec/test/
test_read.cpp 24 const unsigned bufsize = 2 * 1024 * FEC_BLOCKSIZE;
  /system/core/fs_mgr/
fs_mgr_verity.cpp 212 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots);
217 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots);

Completed in 136 milliseconds