Documentation
¶
Index ¶
- func EncodeDigest(hash crypto.Hash, hashDigest []byte) (string, error)
- func FileDigest(reader io.Reader, hash crypto.Hash) ([]byte, uint64, error)
- func SnapFileSHA3_384(snapPath string) (digest string, size uint64, err error)
- func SnapFileSHA3_384FromReader(reader io.Reader) (digest string, size uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeDigest ¶
EncodeDigest encodes the digest from hash algorithm to be put in an assertion header.
func FileDigest ¶
FileDigest computes a hash digest of the file using the given hash. It also returns the file size.
func SnapFileSHA3_384 ¶
SnapFileSHA3_384 computes the SHA3-384 digest of the given snap file. It also returns its size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.