Fix issues with hash calculation

This patch fixes the hash calculation to use the correct encrypted or
unencrypted application image bytes.  This patch also fixes an
incorrect padding if a header size > 32 bytes is used.

Signed-off-by: Andy Gross <andy.gross@juul.com>
1 file changed
tree: 66943027ad837ab9c9e6b304c8f646419a7d1716
  1. errors/
  2. flash/
  3. image/
  4. manifest/
  5. mfg/
  6. sec/
  7. .gitignore
  8. .travis.yml
  9. go.mod
  10. go.sum
  11. LICENSE
  12. NOTICE
  13. README.md
README.md

Mynewt Artifact

Apache Mynewt Artifact is a Go library that parses, manipulates, validates, and outputs Mynewt artifacts. Supported artifacts are:

  • Images
  • Image manifests
  • Manufacturing images (mfgimages)
  • Manufacturing manifests