From 33de65cebaf78b306501a4195dc0ce4008315e1a Mon Sep 17 00:00:00 2001 From: Mateusz Michalek Date: Tue, 15 Oct 2024 16:01:18 +0200 Subject: [PATCH] scipts: imgtool: bugfix #2096 fixing broken encryption caused by shift in function parameters. 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 94952a838..009d9234c 100755 --- a/scripts/imgtool/main.py +++ b/scripts/imgtool/main.py @@ -510,7 +510,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size, } img.create(key, public_key_format, enckey, dependencies, boot_record, - custom_tlvs, compression_tlvs, int(encrypt_keylen), clear, + custom_tlvs, compression_tlvs, None, int(encrypt_keylen), clear, baked_signature, pub_key, vector_to_sign, user_sha) if compression in ["lzma2", "lzma2armthumb"]: