summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelka Chang <felkachang@google.com>2020-05-26 17:48:37 +0800
committerFelka Chang <felkachang@google.com>2020-05-26 09:54:12 +0000
commit4550e7714c7baba3d2245ed3ab6ef00fc33b90f5 (patch)
tree481dc370f23baf51e39fce8526889380c02bb72b
parentab2e84517761232e458d7b54c79f5158a94f709b (diff)
downloadapex-4550e7714c7baba3d2245ed3ab6ef00fc33b90f5.tar.gz
Update apexer_test the hashtree hash algorithm to sha256
Both apexer and apexer_test apply sha256 to be algorithm of the hashtree. This patch updates the command line 'avbtool' to apply sha256 in apexer_test.py. Fixes: 157447952 Test: atest --host apexer_test Change-Id: I5e4986e0bc54cb87d9ba5cb8fb9b545d09dc1c1d
-rw-r--r--apexer/apexer_test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/apexer/apexer_test.py b/apexer/apexer_test.py
index db99c671..176b994c 100644
--- a/apexer/apexer_test.py
+++ b/apexer/apexer_test.py
@@ -287,6 +287,7 @@ class ApexerRebuildTest(unittest.TestCase):
cmd.append('add_hashtree_footer')
cmd.append('--do_not_generate_fec')
cmd.extend(['--algorithm', 'SHA256_RSA4096'])
+ cmd.extend(['--hash_algorithm', 'sha256'])
cmd.extend(['--key', os.path.join(get_current_dir(), TEST_PRIVATE_KEY)])
manifest_apex = ValidateApexManifest(container_files["apex_manifest.pb"])
cmd.extend(['--prop', 'apex.key:' + manifest_apex.name])