fwupd/plugins/uefi/fu-uefi-pcrs.h
Richard Hughes b56015ed3f uefi: Add the PCR0 value as the device checksum for system firmware
We can't actually access the UEFI ROM from userspace, but the PCR0 is a hash
built from the ROM itself. We could use this value to ensure the firmware has
been written correctly, and that the PCR0 matches the expected value specified
in the metadata.
2018-12-14 19:23:04 +00:00

24 lines
534 B
C

/*
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef __FU_UEFI_PCRS_H
#define __FU_UEFI_PCRS_H
G_BEGIN_DECLS
#define FU_TYPE_UEFI_PCRS (fu_uefi_pcrs_get_type ())
G_DECLARE_FINAL_TYPE (FuUefiPcrs, fu_uefi_pcrs, FU, UEFI_PCRS, GObject)
FuUefiPcrs *fu_uefi_pcrs_new (void);
gboolean fu_uefi_pcrs_setup (FuUefiPcrs *self,
GError **error);
GPtrArray *fu_uefi_pcrs_get_checksums (FuUefiPcrs *self,
guint idx);
G_END_DECLS
#endif /* __FU_UEFI_PCRS_H */