Versions in this module Expand all Collapse all v0 v0.12.4 May 16, 2024 Changes in this version + const MerkleTreeBufioSize + const RecommendedVHDSizeGB + const VeritySignature + var ErrNotVeritySuperBlock = errors.New("invalid dm-verity super-block signature") + var ErrRootHashReadFailure = errors.New("failed to read dm-verity root hash") + var ErrSuperBlockParseFailure = errors.New("failed to parse dm-verity super block") + var ErrSuperBlockReadFailure = errors.New("failed to read dm-verity super block") + func ComputeAndWriteHashDevice(r io.ReadSeeker, w io.Writer) error + func MerkleTree(r io.Reader) ([]byte, error) + func NewDMVeritySuperblock(size uint64) *dmveritySuperblock + func RootHash(tree []byte) []byte + type VerityInfo struct + Algorithm string + DataBlockSize uint32 + DataBlocks uint64 + HashBlockSize uint32 + HashOffsetInBlocks int64 + RootDigest string + Salt string + SuperBlock bool + Version uint32 + func ReadDMVerityInfo(vhdPath string, offsetInBytes int64) (*VerityInfo, error) + func ReadDMVerityInfoReader(r io.Reader) (*VerityInfo, error)