Home
last modified time | relevance | path

Searched refs:annotation_leaf (Results 1 – 9 of 9) sorted by relevance

/external/avb/test/
Davb_aftl_validate_unittest.cc202 icp_entry_->annotation_leaf = in SetUp()
205 if (!icp_entry_->annotation_leaf) return; in SetUp()
206 icp_entry_->annotation_leaf->version = 1; in SetUp()
207 icp_entry_->annotation_leaf->timestamp = 0; in SetUp()
208 icp_entry_->annotation_leaf->leaf_type = in SetUp()
210 icp_entry_->annotation_leaf->annotation = in SetUp()
212 if (!icp_entry_->annotation_leaf->annotation) return; in SetUp()
213 icp_entry_->annotation_leaf->annotation->vbmeta_hash_size = in SetUp()
215 icp_entry_->annotation_leaf->annotation->vbmeta_hash = in SetUp()
217 if (!icp_entry_->annotation_leaf->annotation->vbmeta_hash) return; in SetUp()
[all …]
Davb_aftl_util_unittest.cc101 EXPECT_EQ(icp_entry->annotation_leaf->annotation->vbmeta_hash_size, in TestAftlIcpEntry()
/external/avb/libavb_aftl/
Davb_aftl_util.c579 icp_entry->annotation_leaf = leaf; in parse_annotation_leaf()
877 if (icp_entry->annotation_leaf) { in free_aftl_icp_entry()
878 if (icp_entry->annotation_leaf->signature) { in free_aftl_icp_entry()
879 if (icp_entry->annotation_leaf->signature->signature) { in free_aftl_icp_entry()
880 avb_free(icp_entry->annotation_leaf->signature->signature); in free_aftl_icp_entry()
882 avb_free(icp_entry->annotation_leaf->signature); in free_aftl_icp_entry()
884 if (icp_entry->annotation_leaf->annotation) { in free_aftl_icp_entry()
885 if (icp_entry->annotation_leaf->annotation->vbmeta_hash) in free_aftl_icp_entry()
886 avb_free(icp_entry->annotation_leaf->annotation->vbmeta_hash); in free_aftl_icp_entry()
887 if (icp_entry->annotation_leaf->annotation->version_incremental) in free_aftl_icp_entry()
[all …]
Davb_aftl_validate.c45 if (icp_entry->annotation_leaf->annotation->vbmeta_hash_size != in avb_aftl_verify_vbmeta_hash()
53 icp_entry->annotation_leaf->annotation->vbmeta_hash, in avb_aftl_verify_vbmeta_hash()
Davb_aftl_types.h181 SignedVBMetaPrimaryAnnotationLeaf* annotation_leaf; member
/external/avb/
Daftltool416 self.annotation_leaf = SignedVBMetaPrimaryAnnotationLeaf.parse(
432 self.annotation_leaf = SignedVBMetaPrimaryAnnotationLeaf()
456 return self.annotation_leaf.get_expected_size()
495 leaf_hash = rfc6962_hash_leaf(self.annotation_leaf.encode())
529 and self.annotation_leaf.annotation.vbmeta_hash == vbmeta_hash)
561 self.annotation_leaf.encode(),
578 self.annotation_leaf = SignedVBMetaPrimaryAnnotationLeaf.parse(
579 avbm_response.annotation_leaf)
610 if (not self.annotation_leaf or
611 not isinstance(self.annotation_leaf, Leaf)):
[all …]
Daftltool.py416 self.annotation_leaf = SignedVBMetaPrimaryAnnotationLeaf.parse(
432 self.annotation_leaf = SignedVBMetaPrimaryAnnotationLeaf()
456 return self.annotation_leaf.get_expected_size()
495 leaf_hash = rfc6962_hash_leaf(self.annotation_leaf.encode())
529 and self.annotation_leaf.annotation.vbmeta_hash == vbmeta_hash)
561 self.annotation_leaf.encode(),
578 self.annotation_leaf = SignedVBMetaPrimaryAnnotationLeaf.parse(
579 avbm_response.annotation_leaf)
610 if (not self.annotation_leaf or
611 not isinstance(self.annotation_leaf, Leaf)):
[all …]
Daftltool_test.py235 self.test_entry_1.annotation_leaf = self.test_anno_1
288 self.test_entry_2.annotation_leaf = self.test_anno_1
397 self.test_avbm_resp.annotation_leaf = leaf
850 vbmeta_hash = entry.annotation_leaf.annotation.vbmeta_hash
853 entry.annotation_leaf.annotation.vbmeta_hash = vbmeta_hash
1367 self.assertEqual(icp.annotation_leaf.annotation.version_incremental,
1373 icp.annotation_leaf.annotation.manufacturer_key_hash,
/external/avb/proto/
Dapi.proto48 bytes annotation_leaf = 2; field
79 bytes annotation_leaf = 2; field