Skip to content

Commit

Permalink
[nrf fromlist] scipts: imgtool: bugfix #2096
Browse files Browse the repository at this point in the history
fixing broken encryption caused by shift in function parameters.

Upstream PR: mcu-tools/mcuboot#2098

Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
  • Loading branch information
michalek-no authored and nordicjm committed Oct 17, 2024
1 parent 53a7490 commit 31f74eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/imgtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 31f74eb

Please sign in to comment.