/external/avb/libavb/ |
D | avb_chain_partition_descriptor.c | 44 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap() 54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
|
D | avb_hash_descriptor.c | 44 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap() 51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
|
D | avb_hashtree_descriptor.c | 52 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hashtree_descriptor_validate_and_byteswap() 59 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
|
D | avb_slot_verify.c | 310 desc_salt = desc_partition_name + hash_desc.partition_name_len; in load_and_verify_hash_partition() 313 if (!avb_validate_utf8(desc_partition_name, hash_desc.partition_name_len)) { in load_and_verify_hash_partition() 324 hash_desc.partition_name_len); in load_and_verify_hash_partition() 332 if (hash_desc.partition_name_len >= AVB_PART_NAME_MAX_SIZE) { in load_and_verify_hash_partition() 337 avb_memcpy(part_name, desc_partition_name, hash_desc.partition_name_len); in load_and_verify_hash_partition() 338 part_name[hash_desc.partition_name_len] = '\0'; in load_and_verify_hash_partition() 352 hash_desc.partition_name_len, in load_and_verify_hash_partition() 557 size_t partition_name_len, in load_and_verify_vbmeta() argument 593 if (!avb_validate_utf8((const uint8_t*)partition_name, partition_name_len)) { in load_and_verify_vbmeta() 603 partition_name_len, in load_and_verify_vbmeta() [all …]
|
D | avb_chain_partition_descriptor.h | 54 uint32_t partition_name_len; member
|
D | avb_hash_descriptor.h | 68 uint32_t partition_name_len; member
|
D | avb_hashtree_descriptor.h | 78 uint32_t partition_name_len; member
|
/external/u-boot/lib/libavb/ |
D | avb_chain_partition_descriptor.c | 25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap() 35 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
|
D | avb_hash_descriptor.c | 25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap() 32 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
|
D | avb_slot_verify.c | 190 desc_salt = desc_partition_name + hash_desc.partition_name_len; in load_and_verify_hash_partition() 193 if (!avb_validate_utf8(desc_partition_name, hash_desc.partition_name_len)) { in load_and_verify_hash_partition() 204 hash_desc.partition_name_len); in load_and_verify_hash_partition() 212 if (hash_desc.partition_name_len >= AVB_PART_NAME_MAX_SIZE) { in load_and_verify_hash_partition() 217 avb_memcpy(part_name, desc_partition_name, hash_desc.partition_name_len); in load_and_verify_hash_partition() 218 part_name[hash_desc.partition_name_len] = '\0'; in load_and_verify_hash_partition() 232 hash_desc.partition_name_len, in load_and_verify_hash_partition() 448 size_t partition_name_len, in load_and_verify_vbmeta() argument 484 if (!avb_validate_utf8((const uint8_t*)partition_name, partition_name_len)) { in load_and_verify_vbmeta() 494 partition_name_len, in load_and_verify_vbmeta() [all …]
|
D | avb_hashtree_descriptor.c | 33 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hashtree_descriptor_validate_and_byteswap() 40 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
|
D | avb_chain_partition_descriptor.h | 35 uint32_t partition_name_len; member
|
D | avb_hash_descriptor.h | 49 uint32_t partition_name_len; member
|
D | avb_hashtree_descriptor.h | 59 uint32_t partition_name_len; member
|
/external/avb/test/ |
D | avb_util_unittest.cc | 167 h.partition_name_len = htobe32(10); in TEST_F() 219 EXPECT_EQ(10UL, s.partition_name_len); in TEST_F() 230 bad.partition_name_len = htobe32(30); in TEST_F() 254 h.partition_name_len = htobe32(10); in TEST_F() 262 EXPECT_EQ(10UL, s.partition_name_len); in TEST_F() 273 bad.partition_name_len = htobe32(30); in TEST_F() 298 h.partition_name_len = htobe32(16); in TEST_F() 306 EXPECT_EQ(16UL, s.partition_name_len); in TEST_F() 321 bad.partition_name_len = htobe32(24); in TEST_F()
|
D | avbtool_unittest.cc | 590 EXPECT_EQ(6UL, d.partition_name_len); in AddHashFooterTest() 598 d.partition_name_len)); in AddHashFooterTest() 599 o += d.partition_name_len; in AddHashFooterTest() 1083 EXPECT_EQ(6UL, d.partition_name_len); in AddHashtreeFooterTest() 1091 d.partition_name_len)); in AddHashtreeFooterTest() 1092 o += d.partition_name_len; in AddHashtreeFooterTest() 1312 EXPECT_EQ(6UL, d.partition_name_len); in AddHashtreeFooterFECTest() 1320 d.partition_name_len)); in AddHashtreeFooterFECTest() 1321 o += d.partition_name_len; in AddHashtreeFooterFECTest() 2081 d.partition_name_len)); in TEST_F() [all …]
|
D | avb_slot_verify_unittest.cc | 879 hash_desc.partition_name_len)); in TEST_F() 880 o += hash_desc.partition_name_len; in TEST_F() 1069 hash_desc.partition_name_len)); in TEST_F() 1070 o += hash_desc.partition_name_len; in TEST_F()
|
/external/avb/ |
D | avbtool | 1284 self.hash_algorithm, partition_name_len, salt_len, 1288 self.SIZE - 16 + partition_name_len + salt_len + root_digest_len, 8) 1296 partition_name_len)]) 1299 o += partition_name_len 1463 partition_name_len, salt_len, 1467 self.SIZE - 16 + partition_name_len + salt_len + digest_len, 8) 1474 partition_name_len)]) 1477 o += partition_name_len 1689 partition_name_len, 1692 self.SIZE - 16 + partition_name_len + public_key_len, 8) [all …]
|