You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/05/24 19:40:54 UTC

[GitHub] [mynewt-newt] ccollins476ad opened a new pull request #300: artifact: add image.CalcHash() function

ccollins476ad opened a new pull request #300: artifact: add image.CalcHash() function
URL: https://github.com/apache/mynewt-newt/pull/300
 
 
   Prior to this commit, the only way to calculate an image's hash was to use image.calcHash() (in `artifact/image/create.go`).  This function is private to the `image` package, and it takes a set of parameters that are is not convenient for most cases.
   
   This commit adds a new public function to the `image.Image` type:
   ```
   func (i *Image) CalcHash() ([]byte, error)
   ```
   
   This function is needed for a change to the imgmod tool (https://github.com/apache/mynewt-imgmod)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services