cbfstool: Add support for hashes as file metadata

Hardware / Coreboot - Patrick Georgi [georgi-clan.de] - 1 October 2015 15:14 UTC

They allow optimizing a verification of a whole CBFS image by only dealing with the headers (assuming you choose to trust the hash algorithm(s)).

The format allows for multiple hashes for a single file, and cbfstool can handle them, but right now it can't generate such headers.

Loosely based on Sol's work in http://review.coreboot.org/#/c/10147/, but using the compatible file attribute format. vboot is now a hard dependency of the build process, but we import it into the tree for quite a while now.

Change-Id: I9f14f30537d676ce209ad612e7327c6f4810b313

89f2034 cbfstool: Add support for hashes as file metadata
util/cbfstool/Makefile.inc | 15 +++++++++
util/cbfstool/cbfs.h | 29 ++++++++++++++++
util/cbfstool/cbfs_image.c | 79 ++++++++++++++++++++++++++++++++++++++++++++
util/cbfstool/cbfs_image.h | 10 ++++++
util/cbfstool/cbfstool.c | 38 ++++++++++++++++-----
5 files changed, 163 insertions(+), 8 deletions(-)

Upstream: review.coreboot.org


  • Share