coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mrc_cache_hash_tpm.c File Reference
#include <security/vboot/antirollback.h>
#include <program_loading.h>
#include <security/vboot/vboot_common.h>
#include <vb2_api.h>
#include <security/tpm/tss.h>
#include <security/vboot/mrc_cache_hash_tpm.h>
#include <console/console.h>
#include <string.h>
Include dependency graph for mrc_cache_hash_tpm.c:

Go to the source code of this file.

Functions

void mrc_cache_update_hash (uint32_t index, const uint8_t *data, size_t size)
 
int mrc_cache_verify_hash (uint32_t index, const uint8_t *data, size_t size)
 

Function Documentation

◆ mrc_cache_update_hash()

void mrc_cache_update_hash ( uint32_t  index,
const uint8_t data,
size_t  size 
)

Definition at line 12 of file mrc_cache_hash_tpm.c.

References antirollback_write_space_mrc_hash(), BIOS_ERR, BIOS_INFO, printk, tlcl_lib_init(), and TPM_SUCCESS.

Referenced by update_mrc_cache_by_type().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mrc_cache_verify_hash()

int mrc_cache_verify_hash ( uint32_t  index,
const uint8_t data,
size_t  size 
)

Definition at line 58 of file mrc_cache_hash_tpm.c.

References antirollback_read_space_mrc_hash(), BIOS_ERR, BIOS_INFO, memcmp(), printk, tlcl_lib_init(), and TPM_SUCCESS.

Referenced by mrc_data_valid().

Here is the call graph for this function:
Here is the caller graph for this function: