diff options
author | Felka Chang <felkachang@google.com> | 2020-05-26 17:48:37 +0800 |
---|---|---|
committer | Felka Chang <felkachang@google.com> | 2020-05-26 09:54:12 +0000 |
commit | 4550e7714c7baba3d2245ed3ab6ef00fc33b90f5 (patch) | |
tree | 481dc370f23baf51e39fce8526889380c02bb72b | |
parent | ab2e84517761232e458d7b54c79f5158a94f709b (diff) | |
download | apex-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.py | 1 |
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]) |