buffer: bugfix (v3) fix the checksum

The BIOS is expected to use the XOR checksum which behaves ever so
slightly different compared to summing up the bytes (even though
bitwise XOR is the same as addition).

Fixed the unit test accordingly

Tested: Unit test + tested on a BIOS with real / valid checksummed
payload

Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I326f814eb66892971ec32f0572618a34825d88b0
3 files changed
tree: 31b06167ec6cb19f6d6acd35caa94035419ebc0e
  1. include/
  2. service_files/
  3. src/
  4. subprojects/
  5. test/
  6. .clang-format
  7. .clang-tidy
  8. .gitignore
  9. LICENSE
  10. MAINTAINERS
  11. meson.build
  12. meson_options.txt
  13. OWNERS
  14. README.md
README.md

bios-bmc-smm-error-logger

This daemon will follow the design doc: https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/52109

More detailed implementation details will also be placed here in the future