summaryrefslogtreecommitdiff
path: root/common/ap_ro_integrity_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/ap_ro_integrity_check.c')
-rw-r--r--common/ap_ro_integrity_check.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/common/ap_ro_integrity_check.c b/common/ap_ro_integrity_check.c
index c0303115cf..2e6b93fa2a 100644
--- a/common/ap_ro_integrity_check.c
+++ b/common/ap_ro_integrity_check.c
@@ -464,14 +464,9 @@ enum ap_ro_check_result validate_ranges_sha(const struct ro_range *ranges,
struct sha256_ctx ctx;
usb_spi_sha256_start(&ctx);
- for (i = 0; i < count; i++) {
- CPRINTS("%s: %x:%x", __func__, ranges[i].flash_offset,
- ranges[i].range_size);
- /* Make sure the message gets out before verification starts. */
- cflush();
+ for (i = 0; i < count; i++)
usb_spi_sha256_update(&ctx, ranges[i].flash_offset,
- ranges[i].range_size);
- }
+ ranges[i].range_size, true);
usb_spi_sha256_final(&ctx, digest, sizeof(digest));
if (DCRYPTO_equals(digest, expected_digest, sizeof(digest)) !=