From 85a2a388a43b30a77ccc6b7d0573a5e9d98fe2d8 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 passing user_sha parameters while creating compressed image Signed-off-by: Mateusz Michalek --- scripts/imgtool/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/imgtool/main.py b/scripts/imgtool/main.py index 03d46c907..434530c7a 100755 --- a/scripts/imgtool/main.py +++ b/scripts/imgtool/main.py @@ -565,7 +565,8 @@ 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, + is_pure=is_pure) img = compressed_img img.save(outfile, hex_addr) if sig_out is not None: