Home
last modified time | relevance | path

Searched refs:vbmeta_image (Results 1 – 12 of 12) sorted by relevance

/external/avb/libavb_user/
Davb_user_verity.c43 uint8_t vbmeta_image[AVB_VBMETA_IMAGE_HEADER_SIZE], in load_top_level_vbmeta_header()
67 vbmeta_image, in load_top_level_vbmeta_header()
109 vbmeta_image, in load_top_level_vbmeta_header()
132 uint8_t vbmeta_image[AVB_VBMETA_IMAGE_HEADER_SIZE]; /* 256 bytes. */ in avb_user_verity_get() local
139 ops, ab_suffix, vbmeta_image, partition_name, NULL)) { in avb_user_verity_get()
143 if (avb_memcmp(vbmeta_image, AVB_MAGIC, AVB_MAGIC_LEN) != 0) { in avb_user_verity_get()
152 header = (AvbVBMetaImageHeader*)vbmeta_image; in avb_user_verity_get()
168 uint8_t vbmeta_image[AVB_VBMETA_IMAGE_HEADER_SIZE]; /* 256 bytes. */ in avb_user_verity_set() local
177 ops, ab_suffix, vbmeta_image, partition_name, &vbmeta_offset)) { in avb_user_verity_set()
181 if (avb_memcmp(vbmeta_image, AVB_MAGIC, AVB_MAGIC_LEN) != 0) { in avb_user_verity_set()
[all …]
Davb_user_verification.c43 uint8_t vbmeta_image[AVB_VBMETA_IMAGE_HEADER_SIZE], in load_top_level_vbmeta_header()
67 vbmeta_image, in load_top_level_vbmeta_header()
109 vbmeta_image, in load_top_level_vbmeta_header()
132 uint8_t vbmeta_image[AVB_VBMETA_IMAGE_HEADER_SIZE]; /* 256 bytes. */ in avb_user_verification_get() local
139 ops, ab_suffix, vbmeta_image, partition_name, NULL)) { in avb_user_verification_get()
143 if (avb_memcmp(vbmeta_image, AVB_MAGIC, AVB_MAGIC_LEN) != 0) { in avb_user_verification_get()
152 header = (AvbVBMetaImageHeader*)vbmeta_image; in avb_user_verification_get()
169 uint8_t vbmeta_image[AVB_VBMETA_IMAGE_HEADER_SIZE]; /* 256 bytes. */ in avb_user_verification_set() local
178 ops, ab_suffix, vbmeta_image, partition_name, &vbmeta_offset)) { in avb_user_verification_set()
182 if (avb_memcmp(vbmeta_image, AVB_MAGIC, AVB_MAGIC_LEN) != 0) { in avb_user_verification_set()
[all …]
/external/avb/
Daftltool_test.py551 vbmeta_image, _ = tool.get_vbmeta_image(image_path)
556 vbmeta_image, [self.get_testdata_path('aftl_pubkey_1.pem')]))
560 vbmeta_image, [self.get_testdata_path('testkey_rsa4096_pub.pem')]))
564 vbmeta_image, [self.get_testdata_path('non_existent_blabli')]))
568 vbmeta_image, [self.get_testdata_path('large_blob.bin')]))
571 self.assertFalse(desc.verify_vbmeta_image(vbmeta_image, []))
574 self.assertFalse(desc.verify_vbmeta_image(vbmeta_image, None))
582 vbmeta_image, _ = tool.get_vbmeta_image(image_path)
587 vbmeta_image, [self.get_testdata_path('aftl_pubkey_1.pem')]))
591 vbmeta_image, [self.get_testdata_path('testkey_rsa4096_pub.pem')]))
[all …]
Daftltool_integration_test.py60 self.vbmeta_image = os.environ.get('AFTL_VBMETA_IMAGE')
63 if (not self.aftl_host or not self.aftl_pubkey or not self.vbmeta_image
Daftltool508 def verify_vbmeta_image(self, vbmeta_image, transparency_log_pub_key): argument
520 if not vbmeta_image:
524 vbmeta_hash = hashlib.sha256(vbmeta_image).digest()
1366 def verify_vbmeta_image(self, vbmeta_image, transparency_log_pub_keys): argument
1386 if icp_entry.verify_vbmeta_image(vbmeta_image, pub_key):
1580 vbmeta_image, _ = self.get_vbmeta_image(image_filename)
1581 if not vbmeta_image:
1593 image.seek(len(vbmeta_image))
1614 image.seek(len(vbmeta_image))
1661 vbmeta_image, _ = self.get_vbmeta_image(vbmeta_image_path)
[all …]
Daftltool.py508 def verify_vbmeta_image(self, vbmeta_image, transparency_log_pub_key): argument
520 if not vbmeta_image:
524 vbmeta_hash = hashlib.sha256(vbmeta_image).digest()
1366 def verify_vbmeta_image(self, vbmeta_image, transparency_log_pub_keys): argument
1386 if icp_entry.verify_vbmeta_image(vbmeta_image, pub_key):
1580 vbmeta_image, _ = self.get_vbmeta_image(image_filename)
1581 if not vbmeta_image:
1593 image.seek(len(vbmeta_image))
1614 image.seek(len(vbmeta_image))
1661 vbmeta_image, _ = self.get_vbmeta_image(vbmeta_image_path)
[all …]
Davbtool.py4725 self.avb.append_vbmeta_image(args.image.name, args.vbmeta_image.name,
Davbtool4725 self.avb.append_vbmeta_image(args.image.name, args.vbmeta_image.name,
DREADME.md529 --vbmeta_image vbmeta.img
/external/avb/test/
Davb_unittest_util.cc76 std::string BaseAvbToolTest::CalcVBMetaDigest(const std::string& vbmeta_image, in CalcVBMetaDigest() argument
78 base::FilePath vbmeta_path = testdir_.Append(vbmeta_image); in CalcVBMetaDigest()
Davb_unittest_util.h69 std::string CalcVBMetaDigest(const std::string& vbmeta_image,
/external/avb/libavb/
Davb_slot_verify.c1641 AvbVBMetaData* vbmeta_image = &data->vbmeta_images[n]; in avb_slot_verify_data_free() local
1642 if (vbmeta_image->partition_name != NULL) { in avb_slot_verify_data_free()
1643 avb_free(vbmeta_image->partition_name); in avb_slot_verify_data_free()
1645 if (vbmeta_image->vbmeta_data != NULL) { in avb_slot_verify_data_free()
1646 avb_free(vbmeta_image->vbmeta_data); in avb_slot_verify_data_free()