Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: utility/vbutil_kernel.c

Issue 3126013: Fix KeyBlockVerify() to take an explicit param for whether to use hash only. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Fix one last typo Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: utility/vbutil_kernel.c
diff --git a/utility/vbutil_kernel.c b/utility/vbutil_kernel.c
index eeae96e13d1ea160c818ccd5e63380e14300c6f8..763480e35f0f415758e7ca21680aa33c132a7504 100644
--- a/utility/vbutil_kernel.c
+++ b/utility/vbutil_kernel.c
@@ -641,7 +641,8 @@ static int Verify(const char* infile, const char* signpubkey, int verbose) {
/* Verify key block */
key_block = bp->key_block;
- if (0 != KeyBlockVerify(key_block, bp->blob_size, sign_key)) {
+ if (0 != KeyBlockVerify(key_block, bp->blob_size, sign_key,
+ (sign_key ? 0 : 1))) {
error("Error verifying key block.\n");
goto verify_exit;
}

Powered by Google App Engine
This is Rietveld 408576698