Skip to content

Conversation

@TequinDragon
Copy link

@TequinDragon TequinDragon commented Feb 6, 2025

Hi there,

I've been using McuMgr in a project of mine for a while and have made a few changes of my own. This PR back ports support for Protected TLV parsing within the imageInfo() function. Useful for getting correct hash outputs for comparison.

  1. Uses DataView instead of Uint8Array to improve readability of parsing the image header fields.
  2. Extract the protected_tlv_length field to add to the length of data that needs to be hashed.
  3. Extract TLV key value pairs into a map that could be useful i.e. accessing vendor information.

@TequinDragon
Copy link
Author

Is there something wrong with the pull request?
I've been using my fork with builds from Zephyr based projects and was the reason for making these changes in the first place.

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.

1 participant