verity-hash

Crates.ioverity-hash
lib.rsverity-hash
version0.1.0
created_at2024-12-08 17:16:35.227082+00
updated_at2024-12-08 17:16:35.227082+00
descriptiondm-verity hash image verifier
homepage
repositoryhttps://github.com/losfair/verity-hash
max_upload_size
id1476453
size15,444
Heyang Zhou (losfair)

documentation

README

verity-hash

dm-verity hash image verifier.

Usage

CLI:

$ dd if=/dev/urandom of=data.img bs=1M count=10
$ veritysetup format --root-hash-file root_hash.txt data.img hash.img
$ cargo run --release data.img hash.img

Library:

let root_hash = verify_and_calculate_sha256_root_hash(&mut data_file, &mut hash_file)?;
Commit count: 2

cargo fmt