Skip to content

Commit

Permalink
[nrf fromlist] scripts: imgtool: fix sha512 for compression
Browse files Browse the repository at this point in the history
passing user_sha parameters while creating compressed image

Upstream PR #: 2141

Signed-off-by: Mateusz Michalek <[email protected]>
  • Loading branch information
michalek-no committed Dec 10, 2024
1 parent 12e5ee1 commit c82defa
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 @@ -565,7 +565,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 c82defa

Please sign in to comment.