| 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 * Data structure definitions for verified boot, for on-disk / in-eeprom | 5 * Data structure definitions for verified boot, for on-disk / in-eeprom |
| 6 * data. | 6 * data. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef VBOOT_REFERENCE_VBOOT_STRUCT_H_ | 9 #ifndef VBOOT_REFERENCE_VBOOT_STRUCT_H_ |
| 10 #define VBOOT_REFERENCE_VBOOT_STRUCT_H_ | 10 #define VBOOT_REFERENCE_VBOOT_STRUCT_H_ |
| 11 | 11 |
| 12 #include <stdint.h> | 12 #include "sysincludes.h" |
| 13 | 13 |
| 14 | 14 |
| 15 /* Public key data */ | 15 /* Public key data */ |
| 16 typedef struct VbPublicKey { | 16 typedef struct VbPublicKey { |
| 17 uint64_t key_offset; /* Offset of key data from start of this struct */ | 17 uint64_t key_offset; /* Offset of key data from start of this struct */ |
| 18 uint64_t key_size; /* Size of key data in bytes (NOT strength of key | 18 uint64_t key_size; /* Size of key data in bytes (NOT strength of key |
| 19 * in bits) */ | 19 * in bits) */ |
| 20 uint64_t algorithm; /* Signature algorithm used by the key */ | 20 uint64_t algorithm; /* Signature algorithm used by the key */ |
| 21 uint64_t key_version; /* Key version */ | 21 uint64_t key_version; /* Key version */ |
| 22 } __attribute__((packed)) VbPublicKey; | 22 } __attribute__((packed)) VbPublicKey; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 uint64_t bootloader_size; /* Size of bootloader in bytes */ | 115 uint64_t bootloader_size; /* Size of bootloader in bytes */ |
| 116 VbSignature body_signature; /* Signature for the kernel body */ | 116 VbSignature body_signature; /* Signature for the kernel body */ |
| 117 } __attribute__((packed)) VbKernelPreambleHeader; | 117 } __attribute__((packed)) VbKernelPreambleHeader; |
| 118 /* This should be followed by: | 118 /* This should be followed by: |
| 119 * 2) The signature data for the kernel body, pointed to by | 119 * 2) The signature data for the kernel body, pointed to by |
| 120 * body_signature.sig_offset. | 120 * body_signature.sig_offset. |
| 121 * 3) The signature data for (VBFirmwarePreambleHeader + body signature | 121 * 3) The signature data for (VBFirmwarePreambleHeader + body signature |
| 122 * data), pointed to by preamble_signature.sig_offset. */ | 122 * data), pointed to by preamble_signature.sig_offset. */ |
| 123 | 123 |
| 124 #endif /* VBOOT_REFERENCE_VBOOT_STRUCT_H_ */ | 124 #endif /* VBOOT_REFERENCE_VBOOT_STRUCT_H_ */ |
| OLD | NEW |