Commit 15909d60 authored by Mateusz Michalek's avatar Mateusz Michalek Committed by Jamie
Browse files

scripts: imgtool: fix sha512 for compression

passing user_sha parameters while creating compressed image

Signed-off-by: default avatarMateusz Michalek <mateusz.michalek@nordicsemi.no>
parent f2a61462
Loading
Loading
Loading
Loading
+1 −1
Changes for scripts/imgtool/main.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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: