I spent a bit of time investigating how to edit XML files of ConfigWizard of infineon. Application itself is written in QT, it loads these config files in XML that look something like this
Benefit of editing this file, is the ability to add custom knobs, and parameters to your application, or restrict some system settings that would be otherwise freely modifiable.
Computing checksum is fairly simple:
- find first occurence of
</checksum>
and include it and rest of the file (i.e. delete everything before</checksum>
) - replace
\r\n
with\n
(this is likely done by the way that file is read) - sha256 in hex encoding is checksum
It’s curious that part of the file before <checksum>
is ignored, but that is irrelevant.
Expressed in python: