diff options
Diffstat (limited to 'include/vboot.h')
-rw-r--r-- | include/vboot.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/vboot.h b/include/vboot.h index 195db31a54..ba924508c7 100644 --- a/include/vboot.h +++ b/include/vboot.h @@ -72,6 +72,24 @@ enum ec_efs_boot_mode { EC_EFS_BOOT_MODE_LIMIT = 255, }; +/**************************************************************************** + * This is quoted from 2secdata_struct.h in the directory, + * src/platform/vboot_reference/firmware/2lib/include/. + ****************************************************************************/ + +/* Kernel secure storage space */ +#define VB2_SECDATA_KERNEL_STRUCT_VERSION_MIN 0x10 +#define VB2_SECDATA_KERNEL_UID 0x4752574c /* 'LWRG' */ +struct vb2_secdata_kernel { + uint8_t struct_version; /* top-half:major. bottom-half:minor. */ + uint8_t struct_size; /* Whole structure size */ + uint8_t crc8; /* CRC for everything below */ + uint8_t reserved0; + + uint32_t kernel_versions; /* Kernel versions */ + uint8_t ec_hash[SHA256_DIGEST_SIZE]; +} __packed; + /** * Validate key contents. * |