Skip to content

Commit 15909d6

Browse files
michalek-nonordicjm
authored andcommitted
scripts: imgtool: fix sha512 for compression
passing user_sha parameters while creating compressed image Signed-off-by: Mateusz Michalek <[email protected]>
1 parent f2a6146 commit 15909d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/imgtool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size,
552552
compressed_img.create(key, public_key_format, enckey,
553553
dependencies, boot_record, custom_tlvs, compression_tlvs,
554554
compression, int(encrypt_keylen), clear, baked_signature,
555-
pub_key, vector_to_sign)
555+
pub_key, vector_to_sign, user_sha=user_sha)
556556
img = compressed_img
557557
img.save(outfile, hex_addr)
558558
if sig_out is not None:

0 commit comments

Comments
 (0)