diff options
Diffstat (limited to 'firmware/2lib/include/2common.h')
-rw-r--r-- | firmware/2lib/include/2common.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/2lib/include/2common.h b/firmware/2lib/include/2common.h index 0f7012cb..d26ccfce 100644 --- a/firmware/2lib/include/2common.h +++ b/firmware/2lib/include/2common.h @@ -410,7 +410,10 @@ int vb2_verify_keyblock2(struct vb2_keyblock2 *block, const struct vb2_public_key *key, const struct vb2_workbuf *wb); -/* Size of work buffer sufficient for vb2_verify_fw_preamble() worst case */ +/* + * Size of work buffer sufficient for vb2_verify_fw_preamble() or + * vb2_verify_fw_preamble2() worst case. + */ #define VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES VB2_VERIFY_DATA_WORKBUF_BYTES /** @@ -429,4 +432,9 @@ int vb2_verify_fw_preamble(struct vb2_fw_preamble *preamble, const struct vb2_public_key *key, const struct vb2_workbuf *wb); +int vb2_verify_fw_preamble2(struct vb2_fw_preamble2 *preamble, + uint32_t size, + const struct vb2_public_key *key, + const struct vb2_workbuf *wb); + #endif /* VBOOT_REFERENCE_VBOOT_2COMMON_H_ */ |