Skip to content

Commit

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

Signed-off-by: Mateusz Michalek <[email protected]>
  • Loading branch information
michalek-no committed Oct 15, 2024
1 parent 63fa7e4 commit 2d24b73
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 == "lzma2":
Expand Down

0 comments on commit 2d24b73

Please sign in to comment.