Parse Payload v2 header.

The update payload v2 contains an extra field in the header with the
size of the metadata signatures and the metadata signatures stored
right after the metadata. This patch parses the new payload format.

TEST=cros payload show payload-v2.bin; served a payload v2 with

Change-Id: I8ce85af1df505f82f62a9d1cd57910cee6921f84
Commit-Ready: Alex Deymo <>
Tested-by: Alex Deymo <>
Reviewed-by: Gilad Arnold <>
3 files changed