diff options
Diffstat (limited to 'firmware/lib/include/vboot_common.h')
-rw-r--r-- | firmware/lib/include/vboot_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/lib/include/vboot_common.h b/firmware/lib/include/vboot_common.h index 88bf9ac6..32031068 100644 --- a/firmware/lib/include/vboot_common.h +++ b/firmware/lib/include/vboot_common.h @@ -102,6 +102,14 @@ int VerifyFirmwarePreamble(const VbFirmwarePreambleHeader* preamble, uint64_t size, const RSAPublicKey* key); +/* Returns the flags from a firmware preamble, or a default value for + * older preamble versions which didn't contain flags. Use this + * function to ensure compatibility with older preamble versions + * (2.0). Assumes the preamble has already been verified via + * VerifyFirmwarePreamble(). */ +uint32_t VbGetFirmwarePreambleFlags(const VbFirmwarePreambleHeader* preamble); + + /* Checks the sanity of a kernel preamble of size [size] bytes, * using public key [key]. * |