We want to distinguish between a variable store that's marked as capable of storing authenticated variables (basically, checking their signatures and promising that there's no TOCTOU possible), and a variable with the authentication-checking enabled. Change-Id: Ibf6ffbe279961ff54b0988d98a912a8421598e3b Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/88423 Reviewed-by: Sean Rhodes <sean@starlabs.systems> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
19 lines
422 B
C
19 lines
422 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#ifndef SMMSTORETOOL__FV_H__
|
|
#define SMMSTORETOOL__FV_H__
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "utils.h"
|
|
|
|
// Firmware volume is what's stored in SMMSTORE region of CBFS. It wraps
|
|
// variable store.
|
|
|
|
bool fv_init(struct mem_range_t fv);
|
|
|
|
bool fv_parse(struct mem_range_t fv,
|
|
struct mem_range_t *var_store,
|
|
bool *is_auth_var_store);
|
|
|
|
#endif // SMMSTORETOOL__FV_H__
|