vboot: check VBmeta algorithm in verify_avb_data

Verify that a single VBmeta image is present and that its header
algorithm matches the kernel key algorithm in verify_avb_data().

BRANCH=none
BUG=b:524136356
TEST=Build and unit test, boot on DUT

Change-Id: I3bdb0f8419528b22028befd6bed1406232e9fe97
Signed-off-by: Grzegorz Bernacki <bernacki@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/8705573
Reviewed-by: Konrad Adamczyk <konrada@google.com>
2 files changed