#image #hash #verifier #root-hash #dm-verity

bin+lib verity-hash

dm-verity hash image verifier

1 unstable release

0.1.0 Dec 8, 2024

#5 in #root-hash

Download history 58/week @ 2024-12-02 78/week @ 2024-12-09

136 downloads per month

MIT license

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