Files
avbroot/e2e/src
Andrew Gunnerson 2928b96f1f Add CLI for packing and unpacking AVB images
This supports all of the `format::avb` functionality, including
repairing dm-verity images. When packing images, all offsets, sizes,
digests, hash trees, FEC data, signatures, etc. are automatically
recomputed. The goal is that the user can edit any partition image
without needing to think about AVB at all.

A new `--repair` option has also been added to the `avb verify` command
to automatically attempt to all dm-verity images.

As a side effect of the changes, RSA2048 keys are now supported.

This commit also removes the `Clone` implementation from the `PSeekFile`
and `SharedCursor` types. These types use the same underlying file or
memory buffer when cloned, allowing parallel threads to read and write
files using the normal `Read`/`Write` APIs. The intention is that
cloning one of these instances would behave as if a new file handle to
the same file was opened. However, the file offset was also copied
instead of being set to 0, which is confusing. A new `reopen()` method
has been added that explicitly sets the initial offset to 0.

Closes: #148

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
2023-09-19 22:16:03 -04:00
..
2023-08-29 15:54:53 -04:00