/aosp12/system/extras/verity/fec/ |
H A D | image.cpp | 197 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() 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() 283 SHA256(ctx->fec, ctx->fec_size, hash); in image_ecc_load() 304 f->fec_size = ctx->fec_size; in image_ecc_save() 307 SHA256(ctx->fec, ctx->fec_size, f->hash); in image_ecc_save() [all …]
|
H A D | main.cpp | 197 INFO("\traw fec size: %u\n", ctx.fec_size); in encode() 246 INFO("\traw fec size: %u\n", ctx.fec_size); in decode()
|
H A D | image.h | 54 uint32_t fec_size; member
|
/aosp12/system/update_engine/payload_consumer/ |
H A D | verity_writer_android.cc | 130 if (partition_->fec_size != 0) { in Finalize() 137 partition_->fec_size, in Finalize() 150 uint64_t fec_size, in EncodeFEC() argument 159 TEST_AND_RETURN_FALSE(rounds * fec_roots * block_size == fec_size); in EncodeFEC() 228 uint64_t fec_size, in EncodeFEC() argument 240 fec_size, in EncodeFEC()
|
H A D | verity_writer_android.h | 50 uint64_t fec_size, 58 uint64_t fec_size,
|
H A D | filesystem_verifier_action_unittest.cc | 67 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() 619 std::vector<unsigned char> actual_fec(fec_size); in DoTestVABC()
|
H A D | verity_writer_stub.cc | 30 return partition.hash_tree_size == 0 && partition.fec_size == 0; in Init()
|
H A D | install_plan.h | 137 uint64_t fec_size{0};
|
H A D | verity_writer_android_unittest.cc | 148 partition_.fec_size = 2 * 4096; in TEST_F()
|
H A D | filesystem_verifier_action.cc | 425 (partition.hash_tree_size > 0 || partition.fec_size > 0); in ShouldWriteVerity()
|
H A D | delta_performer.cc | 748 install_part.fec_size = extent.num_blocks() * block_size_; in ParseManifestPartitions()
|
/aosp12/system/extras/libfec/ |
H A D | fec_open.cpp | 143 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()
|
H A D | avb_utils.cpp | 124 f->size - hashtree_descriptor.fec_size); in parse_avb_image() 130 f->ecc.size = hashtree_descriptor.fec_size; in parse_avb_image()
|
/aosp12/system/update_engine/payload_generator/ |
H A D | payload_generation_config_android.cc | 70 hashtree.data_block_size, hashtree.fec_offset, hashtree.fec_size); in AvbDescriptorCallback() 215 ExtentForBytes(block_size, ecc_data.start, header->fec_size); in LoadVerityConfig()
|
/aosp12/system/core/fs_mgr/libfs_avb/tests/ |
H A D | fs_avb_util_test.cpp | 92 EXPECT_EQ(90112UL, hashtree_desc->fec_size); in TEST_F()
|
/aosp12/system/extras/libfec/include/fec/ |
H A D | io.h | 50 uint32_t fec_size; member
|
/aosp12/system/update_engine/aosp/ |
H A D | metrics_reporter_android.cc | 67 [](const auto& partition) { return partition.fec_size > 0; }); in IsFECEnabled()
|
/aosp12/build/make/tools/releasetools/ |
H A D | verity_utils.py | 75 fec_size = GetVerityFECSize(image_size + verity_size) 76 return verity_size + fec_size
|
/aosp12/system/core/fs_mgr/libfs_avb/ |
H A D | avb_util.cpp | 84 if (hashtree_desc.fec_size > 0) { in ConstructVerityTable()
|
/aosp12/system/core/fs_mgr/libsnapshot/ |
H A D | snapshot_test.cpp | 2015 constexpr auto fec_size = partition_size - data_size - hashtree_size; in TEST_F() local 2035 sys_->mutable_fec_extent()->set_num_blocks(fec_size / block_size); in TEST_F()
|