From 4d96cc1f9878b1f74a45472396e8d39f0f3f79a3 Mon Sep 17 00:00:00 2001 From: Mateusz Michalek Date: Tue, 10 Dec 2024 13:51:11 +0100 Subject: [PATCH] scripts: imgtool: fix sha512 for compression fixup! scripts: imgtool: compression passing user_sha parameters while creating compressed image Signed-off-by: Mateusz Michalek --- scripts/imgtool/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/imgtool/main.py b/scripts/imgtool/main.py index 009d9234c..e0f70945c 100755 --- a/scripts/imgtool/main.py +++ b/scripts/imgtool/main.py @@ -552,7 +552,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size, compressed_img.create(key, public_key_format, enckey, dependencies, boot_record, custom_tlvs, compression_tlvs, compression, int(encrypt_keylen), clear, baked_signature, - pub_key, vector_to_sign) + pub_key, vector_to_sign, user_sha=user_sha) img = compressed_img img.save(outfile, hex_addr) if sig_out is not None: