|author||Mike Frysinger <firstname.lastname@example.org>||Tue Aug 11 01:00:47 2020 -0400|
|committer||Commit Bot <email@example.com>||Thu Aug 13 03:47:26 2020 +0000|
clean up stray whitespace This will help us migrate the code to platform2. BUG=chromium:886953 TEST=CQ passes Change-Id: I83fd92899603841f94f84b183df586910a2e7a00 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dm-verity/+/2348389 Reviewed-by: Amin Hassani <firstname.lastname@example.org> Reviewed-by: Jorge Lucangeli Obes <email@example.com> Tested-by: Mike Frysinger <firstname.lastname@example.org> Commit-Queue: Mike Frysinger <email@example.com>
Verity is the userspace tool for creating integrity hashes for a device image.
This tool is a frontend for dm-bht, a device-mapper friendly block hash table structure. `verity' produces dm-bht-based images for use with dm-verity. The dm-verity module provides a transparent, integrity-checking layer over a given block device. This expects a backing device and a secondary device which provides cryptographic digests of the blocks on the primary device
Note, the secondary device image can be appended to the primary device or used as a standalone device.
This tool creates an image of the format:
Upon completion, the hash of the root hash will be printed to standard out. The root hash, tree depth, number of hashed blocks, and cryptographic hash algorithm used must be supplied to the dm-verity when configuring a device.
To build outside of Chromium OS:
./verity mode depth alg image hash_image [root_hexdigest]
dd if=/dev/zero of=/tmp/image bs=4k count=512 ./verity create 2 sha256 /tmp/image /tmp/hash | tee table # ... cat table ls -la /tmp/hash
All the source code is licensed GPLv2 to be completely kernel compatible. The Makefiles are from the parent project and are licensed under a BSD-style license.