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 authored and nvlsianpu committed Oct 17, 2024
1 parent b9d69dd commit 33de65c
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 33de65c

Please sign in to comment.