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 5e059e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/imgtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ 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,
is_pure=is_pure)
img = compressed_img
img.save(outfile, hex_addr)
if sig_out is not None:
Expand Down

0 comments on commit 5e059e9

Please sign in to comment.