/external/avb/libavb_aftl/ |
D | avb_aftl_verify.c | 40 size_t vbmeta_size, in avb_aftl_find_aftl_image() argument 45 avb_assert(vbmeta_size <= AVB_AFTL_MAX_AFTL_IMAGE_SIZE); in avb_aftl_find_aftl_image() 48 vbmeta_size /* offset */, in avb_aftl_find_aftl_image() 49 AVB_AFTL_MAX_AFTL_IMAGE_SIZE - vbmeta_size, in avb_aftl_find_aftl_image() 136 size_t vbmeta_size; in aftl_slot_verify() local 170 vbmeta_size = slot_verify_data->vbmeta_images[i].vbmeta_size; in aftl_slot_verify() 172 ops, part_name, vbmeta_size, current_aftl_blob, &aftl_image_size); in aftl_slot_verify() 180 vbmeta_size, in aftl_slot_verify()
|
D | avb_aftl_validate.c | 36 size_t vbmeta_size, in avb_aftl_verify_vbmeta_hash() argument 41 if (!avb_aftl_sha256(vbmeta, vbmeta_size, vbmeta_hash)) return false; in avb_aftl_verify_vbmeta_hash()
|
D | avb_aftl_validate.h | 42 size_t vbmeta_size, /* Size of the vbmeta buffer. */
|
/external/avb/libavb/ |
D | avb_footer.c | 36 dest->vbmeta_size = avb_be64toh(dest->vbmeta_size); in avb_footer_validate_and_byteswap()
|
D | avb_slot_verify.c | 576 size_t vbmeta_size; in load_and_verify_vbmeta() local 639 vbmeta_size = VBMETA_MAX_SIZE; in load_and_verify_vbmeta() 666 if (footer.vbmeta_size > VBMETA_MAX_SIZE) { in load_and_verify_vbmeta() 671 vbmeta_size = footer.vbmeta_size; in load_and_verify_vbmeta() 676 vbmeta_buf = avb_malloc(vbmeta_size); in load_and_verify_vbmeta() 697 vbmeta_size, in load_and_verify_vbmeta() 733 avb_assert(vbmeta_num_read <= vbmeta_size); in load_and_verify_vbmeta() 913 vbmeta_image_data->vbmeta_size = in load_and_verify_vbmeta() 1722 data->vbmeta_images[n].vbmeta_size); in avb_slot_verify_data_calculate_vbmeta_digest() 1734 data->vbmeta_images[n].vbmeta_size); in avb_slot_verify_data_calculate_vbmeta_digest()
|
D | avb_footer.h | 68 uint64_t vbmeta_size; member
|
D | avb_slot_verify.h | 179 size_t vbmeta_size; member
|
D | avb_cmdline.c | 275 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options() 298 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
|
/external/avb/test/ |
D | avbtool_unittest.cc | 285 int64_t vbmeta_size, vbmeta_padded_size; in TEST_F() local 286 ASSERT_TRUE(base::GetFileSize(vbmeta_path, &vbmeta_size)); in TEST_F() 289 EXPECT_NE(vbmeta_size, vbmeta_padded_size); in TEST_F() 295 int64_t vbmeta_size_rounded_up = ((vbmeta_size + 4095) / 4096) * 4096; in TEST_F() 613 EXPECT_EQ(1280UL, f.vbmeta_size); in AddHashFooterTest() 619 avb_vbmeta_image_verify(vbmeta_data, f.vbmeta_size, NULL, NULL)); in AddHashFooterTest() 624 vbmeta_data, f.vbmeta_size, collect_descriptors, &descriptors); in AddHashFooterTest() 1158 EXPECT_EQ(1344UL, f.vbmeta_size); in AddHashtreeFooterTest() 1164 avb_vbmeta_image_verify(vbmeta_data, f.vbmeta_size, NULL, NULL)); in AddHashtreeFooterTest() 1169 vbmeta_data, f.vbmeta_size, collect_descriptors, &descriptors); in AddHashtreeFooterTest() [all …]
|
D | avb_slot_verify_unittest.cc | 718 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F() 722 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F() 814 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F() 818 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F() 1072 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F() 1076 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F() 1082 slot_data->vbmeta_images[1].vbmeta_size, in TEST_F() 1382 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F() 1386 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F() 1393 slot_data->vbmeta_images[1].vbmeta_size, in TEST_F() [all …]
|
D | avb_aftl_verify_unittest.cc | 80 asv_test_data_->vbmeta_images[0].vbmeta_size = vbmeta_.size(); in SetUp()
|
D | avb_util_unittest.cc | 83 h.vbmeta_size = htobe64(n64); in TEST_F() 96 EXPECT_EQ(n64, s.vbmeta_size); in TEST_F()
|
/external/avb/ |
D | avbtool | 1994 self.vbmeta_size) = struct.unpack(self.FORMAT_STRING, data) 2003 self.vbmeta_size = 0 2013 self.vbmeta_offset, self.vbmeta_size) 2218 vbmeta_blob = image.read(footer.vbmeta_size) 2342 vbmeta_end_offset = footer.vbmeta_offset + footer.vbmeta_size 2427 o.write('VBMeta size: {} bytes\n'.format(footer.vbmeta_size)) 3307 footer.vbmeta_size = len(vbmeta_blob) 3509 footer.vbmeta_size = len(vbmeta_blob) 3782 footer.vbmeta_size = len(vbmeta_blob)
|
D | avbtool.py | 1994 self.vbmeta_size) = struct.unpack(self.FORMAT_STRING, data) 2003 self.vbmeta_size = 0 2013 self.vbmeta_offset, self.vbmeta_size) 2218 vbmeta_blob = image.read(footer.vbmeta_size) 2342 vbmeta_end_offset = footer.vbmeta_offset + footer.vbmeta_size 2427 o.write('VBMeta size: {} bytes\n'.format(footer.vbmeta_size)) 3307 footer.vbmeta_size = len(vbmeta_blob) 3509 footer.vbmeta_size = len(vbmeta_blob) 3782 footer.vbmeta_size = len(vbmeta_blob)
|