coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mrc_cache_hash_tpm.h File Reference
#include <types.h>
Include dependency graph for mrc_cache_hash_tpm.h:
This graph shows which files directly or indirectly include this file:

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: