OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * Common functions between firmware and kernel verified boot. | 5 * Common functions between firmware and kernel verified boot. |
6 * (Firmware portion) | 6 * (Firmware portion) |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "vboot_common.h" | 10 #include "vboot_common.h" |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 /* Verify body signature is inside the block */ | 332 /* Verify body signature is inside the block */ |
333 if (VerifySignatureInside(preamble, preamble->preamble_size, | 333 if (VerifySignatureInside(preamble, preamble->preamble_size, |
334 &preamble->body_signature)) { | 334 &preamble->body_signature)) { |
335 debug("Kernel body signature off end of preamble\n"); | 335 debug("Kernel body signature off end of preamble\n"); |
336 return VBOOT_PREAMBLE_INVALID; | 336 return VBOOT_PREAMBLE_INVALID; |
337 } | 337 } |
338 | 338 |
339 /* Success */ | 339 /* Success */ |
340 return VBOOT_SUCCESS; | 340 return VBOOT_SUCCESS; |
341 } | 341 } |
OLD | NEW |