| 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 * Functions for generating and manipulating a verified boot firmware image. | 5 * Functions for generating and manipulating a verified boot firmware image. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "firmware_image.h" | 8 #include "firmware_image.h" |
| 9 | 9 |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 Free(firmware_buf); | 462 Free(firmware_buf); |
| 463 return 0; | 463 return 0; |
| 464 } | 464 } |
| 465 image->firmware_signature = (uint8_t*) Malloc(signature_len); | 465 image->firmware_signature = (uint8_t*) Malloc(signature_len); |
| 466 Memcpy(image->firmware_signature, firmware_signature, signature_len); | 466 Memcpy(image->firmware_signature, firmware_signature, signature_len); |
| 467 Free(firmware_signature); | 467 Free(firmware_signature); |
| 468 Free(firmware_buf); | 468 Free(firmware_buf); |
| 469 Free(preamble_blob); | 469 Free(preamble_blob); |
| 470 return 1; | 470 return 1; |
| 471 } | 471 } |
| OLD | NEW |