Warn when `hashable` is used on an encrypted image

An image's hash is calculated from the following two inputs:
1. Image header.
2. Unencrypted image body.

The `image hashable` command extracts the header and body from a
complete image.  If the image body is encrypted, then the result of this
command will not generate the correct hash.

This commit adds a warning in case `image hashable` is used on an
encrypyted image.
1 file changed
tree: c75791f73cefcb61517cf8c16375768a61ac3489
  1. cli/
  2. iimg/
  3. imfg/
  4. go.mod
  5. go.sum
  6. imgmod.go