vendor/eltan/security: Removed long lines from vboot_check
Removed long lines from the verified_boot_check_buffer() function. BUG=N/A TEST=build Change-Id: I2ea0ae82bd531355111d6b45c67bdc2b1759b7bc Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36849 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
This commit is contained in:
parent
9fc8cf89e8
commit
ffe4eba380
|
@ -142,7 +142,8 @@ static void verified_boot_check_buffer(const char *name, void *start, size_t siz
|
||||||
else
|
else
|
||||||
hash_algorithm = VB2_HASH_SHA256;
|
hash_algorithm = VB2_HASH_SHA256;
|
||||||
|
|
||||||
status = cb_sha_little_endian(hash_algorithm, (const uint8_t *)start, size, digest);
|
status = cb_sha_little_endian(hash_algorithm, (const uint8_t *)start, size,
|
||||||
|
digest);
|
||||||
if ((CONFIG(VENDORCODE_ELTAN_VBOOT) && memcmp((void *)(
|
if ((CONFIG(VENDORCODE_ELTAN_VBOOT) && memcmp((void *)(
|
||||||
(uint8_t *)CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_LOC +
|
(uint8_t *)CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_LOC +
|
||||||
sizeof(digest) * hash_index), digest, sizeof(digest))) || status) {
|
sizeof(digest) * hash_index), digest, sizeof(digest))) || status) {
|
||||||
|
@ -156,7 +157,8 @@ static void verified_boot_check_buffer(const char *name, void *start, size_t siz
|
||||||
} else {
|
} else {
|
||||||
if (!ENV_BOOTBLOCK && CONFIG(VENDORCODE_ELTAN_MBOOT)) {
|
if (!ENV_BOOTBLOCK && CONFIG(VENDORCODE_ELTAN_MBOOT)) {
|
||||||
if (pcr != -1) {
|
if (pcr != -1) {
|
||||||
printk(BIOS_DEBUG, "%s: measuring %s\n", __func__, name);
|
printk(BIOS_DEBUG, "%s: measuring %s\n", __func__,
|
||||||
|
name);
|
||||||
if (measure_item(pcr, digest, sizeof(digest),
|
if (measure_item(pcr, digest, sizeof(digest),
|
||||||
(int8_t *)name, 0))
|
(int8_t *)name, 0))
|
||||||
printk(BIOS_DEBUG, "%s: measuring failed!\n",
|
printk(BIOS_DEBUG, "%s: measuring failed!\n",
|
||||||
|
|
Loading…
Reference in New Issue