Expand description
fsverity_merkle contains types and methods for building and working with fsverity merkle trees.
Structs§
- FsVerity
Descriptor - A descriptor struct for fsverity. It does not own the bytes backing it.
- FsVerity
Descriptor Raw - The raw structure of an FsVerity descriptor. The values in this are not necessarily valid.
- FsVerity
Hasher Options FsVerityHasherOptionscontains relevant metadata for the FsVerityHasher. Thesaltis set according to the FsverityMetadata struct stored in fxfs andblock_sizeis that of the filesystem.- Merkle
Tree - A
MerkleTreecontains levels of hashes that can be used to verify the integrity of data. - Merkle
Tree Builder - A
MerkleTreeBuildergenerates aMerkleTreefrom one or more write calls. - Merkle
Verifier - Verifies data blocks against a pre-validated Merkle tree.
- Sha256
Hash - SHA-256 verity hash.
- Sha512
Hash - SHA-512 verity hash.
Enums§
- FsVerity
Hasher FsVerityHasheris used by fsverity to construct merkle trees for verity-enabled files.FsVerityHasheris parameterized by a salt and a block size.
Constants§
Traits§
- FsVerity
Hash - A cryptographic hash digest used in a Merkle tree.
Functions§
- from_
slice - Compute a merkle tree from a
&[u8]for a particular hasher.