Crate fsverity_merkle

source ·
Expand description

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


  • 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.
  • A MerkleTree contains levels of hashes that can be used to verify the integrity of data.
  • A MerkleTreeBuilder generates a MerkleTree from one or more write calls.


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



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