1 unstable release
0.1.0 | Dec 8, 2024 |
---|
#5 in #root-hash
136 downloads per month
10KB
227 lines
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)?;
lib.rs
:
dm-verity
hash image verifier.
Dependencies
~0.5–0.9MB
~20K SLoC