Remove HashTreeInfo from verity_utils.py
We are removing VB related functionalities from release tools. This change removes the hashtreeinfo and generator in verity_utils.py. It also clears the function args using it. Bug: 241044073 Test: atest under build/make Change-Id: Icc298256be6917ffbd40cf4735f8e8092b541c9f
This commit is contained in:
@@ -282,37 +282,6 @@ class VerifiedBootVersion2VerityImageBuilder(VerityImageBuilder):
|
||||
raise BuildVerityImageError("Failed to add AVB footer: {}".format(output))
|
||||
|
||||
|
||||
class HashtreeInfoGenerationError(Exception):
|
||||
"""An Exception raised during hashtree info generation."""
|
||||
|
||||
def __init__(self, message):
|
||||
Exception.__init__(self, message)
|
||||
|
||||
|
||||
class HashtreeInfo(object):
|
||||
def __init__(self):
|
||||
self.hashtree_range = None
|
||||
self.filesystem_range = None
|
||||
self.hash_algorithm = None
|
||||
self.salt = None
|
||||
self.root_hash = None
|
||||
|
||||
|
||||
def CreateHashtreeInfoGenerator(partition_name, block_size, info_dict):
|
||||
return None
|
||||
|
||||
|
||||
class HashtreeInfoGenerator(object):
|
||||
def Generate(self, image):
|
||||
raise NotImplementedError
|
||||
|
||||
def DecomposeSparseImage(self, image):
|
||||
raise NotImplementedError
|
||||
|
||||
def ValidateHashtree(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
def CreateCustomImageBuilder(info_dict, partition_name, partition_size,
|
||||
key_path, algorithm, signing_args):
|
||||
builder = None
|
||||
|
Reference in New Issue
Block a user