Home
last modified time | relevance | path

Searched refs:fec_size (Results 1 – 19 of 19) sorted by relevance

/system/extras/verity/fec/
Dimage.cpp197 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 …]
Dimage.h54 uint32_t fec_size; member
Dmain.cpp197 INFO("\traw fec size: %u\n", ctx.fec_size); in encode()
246 INFO("\traw fec size: %u\n", ctx.fec_size); in decode()
/system/update_engine/payload_consumer/
Dverity_writer_android.cc172 partition_->fec_size, in Init()
263 if (partition_->fec_size != 0) { in Finalize()
270 partition_->fec_size, in Finalize()
307 if (partition_->fec_size != 0) { in IncrementalFinalize()
311 if (partition_->fec_size != 0) { in IncrementalFinalize()
317 if ((encodeFEC_.Finished() || partition_->fec_size == 0) && in FECFinished()
333 uint64_t fec_size, in EncodeFEC() argument
343 TEST_AND_RETURN_FALSE(rounds * fec_roots * block_size == fec_size); in EncodeFEC()
413 uint64_t fec_size, in EncodeFEC() argument
424 fec_size, in EncodeFEC()
Dverity_writer_android.h105 uint64_t fec_size,
113 uint64_t fec_size,
Dfilesystem_verifier_action_unittest.cc67 size_t fec_size = 0; member in chromeos_update_engine::FilesystemVerifierActionTest
78 fec_size = fec_rounds * FEC_ROOTS * BLOCK_SIZE; in SetUp()
80 fec_data_.resize(fec_size); in SetUp()
147 partition->fec_size = fec_size; in SetHashWithVerity()
190 ZeroRange(fd, fec_start_offset / BLOCK_SIZE, fec_size / BLOCK_SIZE); in SetHashWithVerity()
465 part.fec_size = 2 * 4096; in TEST_F()
526 part.fec_size = 2 * 4096; in TEST_F()
620 std::vector<unsigned char> actual_fec(fec_size); in DoTestVABC()
Dverity_writer_stub.cc30 return partition.hash_tree_size == 0 && partition.fec_size == 0; in Init()
Dverity_writer_android_unittest.cc151 partition_.fec_size = 2 * 4096; in TEST_F()
177 partition_.fec_size = 2 * 4096; in TEST_F()
Dinstall_plan.h159 uint64_t fec_size{0};
Dinstall_plan.cc215 fec_size = extent.num_blocks() * block_size; in ParseVerityConfig()
Dfilesystem_verifier_action.cc482 (partition.hash_tree_size > 0 || partition.fec_size > 0); in ShouldWriteVerity()
/system/extras/libfec/
Dfec_open.cpp143 if (header.fec_size % header.roots || in parse_ecc_header()
144 header.fec_size % FEC_BLOCKSIZE) { in parse_ecc_header()
145 error("inconsistent ecc size %u", header.fec_size); in parse_ecc_header()
153 if (header.fec_size != in parse_ecc_header()
155 error("inconsistent ecc size %u", header.fec_size); in parse_ecc_header()
159 f->ecc.size = header.fec_size; in parse_ecc_header()
Davb_utils.cpp124 f->size - hashtree_descriptor.fec_size); in parse_avb_image()
130 f->ecc.size = hashtree_descriptor.fec_size; in parse_avb_image()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_util_test.cpp92 EXPECT_EQ(90112UL, hashtree_desc->fec_size); in TEST_F()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc70 hashtree.data_block_size, hashtree.fec_offset, hashtree.fec_size); in AvbDescriptorCallback()
215 ExtentForBytes(block_size, ecc_data.start, header->fec_size); in LoadVerityConfig()
/system/extras/libfec/include/fec/
Dio.h50 uint32_t fec_size; member
/system/update_engine/aosp/
Dmetrics_reporter_android.cc67 [](const auto& partition) { return partition.fec_size > 0; }); in IsFECEnabled()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp71 if (hashtree_desc.fec_size > 0) { in ConstructVerityTable()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_test.cpp2241 constexpr auto fec_size = partition_size - data_size - hashtree_size; in TEST_F() local
2261 sys_->mutable_fec_extent()->set_num_blocks(fec_size / block_size); in TEST_F()