Crates.io | verity-hash |
lib.rs | verity-hash |
version | |
source | src |
created_at | 2024-12-08 17:16:35.227082 |
updated_at | 2024-12-08 17:16:35.227082 |
description | dm-verity hash image verifier |
homepage | |
repository | https://github.com/losfair/verity-hash |
max_upload_size | |
id | 1476453 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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)?;