| Crates.io | verity-hash |
| lib.rs | verity-hash |
| version | 0.1.0 |
| created_at | 2024-12-08 17:16:35.227082+00 |
| updated_at | 2024-12-08 17:16:35.227082+00 |
| description | dm-verity hash image verifier |
| homepage | |
| repository | https://github.com/losfair/verity-hash |
| max_upload_size | |
| id | 1476453 |
| size | 15,444 |
dm-verity hash image verifier.
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)?;