mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 19:44:59 +00:00

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.
24 lines
534 B
C
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 */
|