Skip to content

Commit

Permalink
scripts: imgtool: fix sha512 for compression
Browse files Browse the repository at this point in the history
fixup! scripts: imgtool: compression

passing user_sha parameters while creating compressed image

Signed-off-by: Mateusz Michalek <[email protected]>
  • Loading branch information
michalek-no committed Dec 10, 2024
1 parent f2a6146 commit 4d96cc1
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 @@ -552,7 +552,7 @@ 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)
img = compressed_img
img.save(outfile, hex_addr)
if sig_out is not None:
Expand Down

0 comments on commit 4d96cc1

Please sign in to comment.