Crate fsverity_merkle

Source
Expand description

fsverity_merkle contains types and methods for building and working with fsverity merkle trees.

Structs§

FsVerityHasherOptions
FsVerityHasherOptions contains relevant metadata for the FsVerityHasher. The salt is set according to the FsverityMetadata struct stored in fxfs and block_size is that of the filesystem.
MerkleTree
A MerkleTree contains levels of hashes that can be used to verify the integrity of data.
MerkleTreeBuilder
A MerkleTreeBuilder generates a MerkleTree from one or more write calls.

Enums§

FsVerityHasher
FsVerityHasher is used by fsverity to construct merkle trees for verity-enabled files. FsVerityHasher is parameterized by a salt and a block size.

Constants§

SHA256_SALT_PADDING
SHA512_SALT_PADDING

Functions§

from_slice
Compute a merkle tree from a &[u8] for a particular hasher.