Skip to content

imgtool: Add TLV IDs for SHA3 in image.py#2679

Open
zhovtobruhd wants to merge 1 commit intomcu-tools:mainfrom
zhovtobruhd:main
Open

imgtool: Add TLV IDs for SHA3 in image.py#2679
zhovtobruhd wants to merge 1 commit intomcu-tools:mainfrom
zhovtobruhd:main

Conversation

@zhovtobruhd
Copy link
Copy Markdown

Infineon Technologies is working on a feature that involves SHA3 hashes. We are known to have our own fork of imgtool, but we pull sometimes features from the upstream. For that reason, we intend to reserve TLV IDs for SHA3 hashes for future PRs when we need to add features to upstream.

@zhovtobruhd zhovtobruhd requested a review from d3zd3z as a code owner March 27, 2026 13:18
Copy link
Copy Markdown
Member

@d3zd3z d3zd3z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit text itself needs two things:

  • a more full description. The description you have as the first comment here is a good starting point. The commit text should describe why the change is needed, not just what it is.
  • A Signed-off-by line at the end.

Comment thread scripts/imgtool/image.py
'SHA256': 0x10,
'SHA384': 0x11,
'SHA512': 0x12,
'SHA3_256': 0x13,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To truly reserve these, they should added to boot/bootutil/include/bootutil/image.h as that is the authoritative list. They should also be added to docs/design.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants