Home
last modified time | relevance | path

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

/external/avb/libavb/
Davb_chain_partition_descriptor.c44 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()
Davb_hash_descriptor.c44 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()
Davb_hashtree_descriptor.c52 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()
Davb_slot_verify.c310 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()
566 size_t partition_name_len, in load_and_verify_vbmeta() argument
614 if (!avb_validate_utf8((const uint8_t*)partition_name, partition_name_len)) { in load_and_verify_vbmeta()
624 partition_name_len, in load_and_verify_vbmeta()
[all …]
Davb_chain_partition_descriptor.h54 uint32_t partition_name_len; member
Davb_hash_descriptor.h68 uint32_t partition_name_len; member
Davb_hashtree_descriptor.h78 uint32_t partition_name_len; member
/external/avb/test/
Davb_util_unittest.cc166 h.partition_name_len = htobe32(10); in TEST_F()
218 EXPECT_EQ(10UL, s.partition_name_len); in TEST_F()
229 bad.partition_name_len = htobe32(30); in TEST_F()
253 h.partition_name_len = htobe32(10); in TEST_F()
261 EXPECT_EQ(10UL, s.partition_name_len); in TEST_F()
272 bad.partition_name_len = htobe32(30); in TEST_F()
297 h.partition_name_len = htobe32(16); in TEST_F()
305 EXPECT_EQ(16UL, s.partition_name_len); in TEST_F()
320 bad.partition_name_len = htobe32(24); in TEST_F()
Davbtool_unittest.cc636 EXPECT_EQ(6UL, d.partition_name_len); in AddHashFooterTest()
644 d.partition_name_len)); in AddHashFooterTest()
645 o += d.partition_name_len; in AddHashFooterTest()
1186 EXPECT_EQ(6UL, d.partition_name_len); in AddHashtreeFooterTest()
1194 d.partition_name_len)); in AddHashtreeFooterTest()
1195 o += d.partition_name_len; in AddHashtreeFooterTest()
1483 EXPECT_EQ(6UL, d.partition_name_len); in AddHashtreeFooterFECTest()
1491 d.partition_name_len)); in AddHashtreeFooterFECTest()
1492 o += d.partition_name_len; in AddHashtreeFooterFECTest()
2368 d.partition_name_len)); in TEST_F()
[all …]
Davb_slot_verify_unittest.cc1094 hash_desc.partition_name_len)); in TEST_F()
1095 o += hash_desc.partition_name_len; in TEST_F()
1405 hash_desc.partition_name_len)); in TEST_F()
1406 o += hash_desc.partition_name_len; in TEST_F()
/external/avb/
Davbtool1396 self.hash_algorithm, partition_name_len, salt_len,
1400 self.SIZE - 16 + partition_name_len + salt_len + root_digest_len, 8)
1409 (self.SIZE + o):(self.SIZE + o + partition_name_len)
1414 o += partition_name_len
1590 partition_name_len, salt_len,
1594 self.SIZE - 16 + partition_name_len + salt_len + digest_len, 8)
1602 (self.SIZE + o):(self.SIZE + o + partition_name_len)
1607 o += partition_name_len
1824 partition_name_len,
1827 self.SIZE - 16 + partition_name_len + public_key_len, 8)
[all …]
Davbtool.py1396 self.hash_algorithm, partition_name_len, salt_len,
1400 self.SIZE - 16 + partition_name_len + salt_len + root_digest_len, 8)
1409 (self.SIZE + o):(self.SIZE + o + partition_name_len)
1414 o += partition_name_len
1590 partition_name_len, salt_len,
1594 self.SIZE - 16 + partition_name_len + salt_len + digest_len, 8)
1602 (self.SIZE + o):(self.SIZE + o + partition_name_len)
1607 o += partition_name_len
1824 partition_name_len,
1827 self.SIZE - 16 + partition_name_len + public_key_len, 8)
[all …]