image: calculate padding when parsing image
image: calculate padding when parsing image

When parsing an image file, if the image indicates an extra-long header,
build a slice of bytes to hold the extra leading padding.  This is
needed to perform the image hash calculation correctly.
1 file changed
tree: 3dd82d0d417a145fb9673ea5b74102d8c7688a56
  1. .gitignore
  2. .travis.yml
  3. LICENSE
  4. NOTICE
  5. README.md
  6. errors/
  7. flash/
  8. go.mod
  9. go.sum
  10. image/
  11. manifest/
  12. mfg/
  13. sec/
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