coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
secdata_mock.c File Reference
#include <security/tpm/tspi.h>
#include <vb2_api.h>
#include "antirollback.h"
Include dependency graph for secdata_mock.c:

Go to the source code of this file.

Functions

vb2_error_t vb2ex_tpm_clear_owner (struct vb2_context *ctx)
 
vb2_error_t antirollback_read_space_firmware (struct vb2_context *ctx)
 
vb2_error_t antirollback_write_space_firmware (struct vb2_context *ctx)
 Write may be called if the versions change. More...
 
vb2_error_t antirollback_read_space_kernel (struct vb2_context *ctx)
 Read and write kernel space in TPM. More...
 
vb2_error_t antirollback_write_space_kernel (struct vb2_context *ctx)
 
vb2_error_t antirollback_lock_space_firmware (void)
 Lock must be called. More...
 
vb2_error_t antirollback_lock_space_mrc_hash (uint32_t index)
 
vb2_error_t antirollback_read_space_mrc_hash (uint32_t index, uint8_t *data, uint32_t size)
 
vb2_error_t antirollback_write_space_mrc_hash (uint32_t index, const uint8_t *data, uint32_t size)
 

Function Documentation

◆ antirollback_lock_space_firmware()

vb2_error_t antirollback_lock_space_firmware ( void  )

Lock must be called.

Definition at line 52 of file secdata_mock.c.

◆ antirollback_lock_space_mrc_hash()

vb2_error_t antirollback_lock_space_mrc_hash ( uint32_t  index)

Definition at line 57 of file secdata_mock.c.

Referenced by verstage_main().

Here is the caller graph for this function:

◆ antirollback_read_space_firmware()

vb2_error_t antirollback_read_space_firmware ( struct vb2_context *  ctx)

Definition at line 18 of file secdata_mock.c.

◆ antirollback_read_space_kernel()

vb2_error_t antirollback_read_space_kernel ( struct vb2_context *  ctx)

Read and write kernel space in TPM.

Definition at line 29 of file secdata_mock.c.

◆ antirollback_read_space_mrc_hash()

vb2_error_t antirollback_read_space_mrc_hash ( uint32_t  index,
uint8_t data,
uint32_t  size 
)

Definition at line 62 of file secdata_mock.c.

Referenced by mrc_cache_verify_hash().

Here is the caller graph for this function:

◆ antirollback_write_space_firmware()

vb2_error_t antirollback_write_space_firmware ( struct vb2_context *  ctx)

Write may be called if the versions change.

Definition at line 24 of file secdata_mock.c.

◆ antirollback_write_space_kernel()

vb2_error_t antirollback_write_space_kernel ( struct vb2_context *  ctx)

Definition at line 47 of file secdata_mock.c.

◆ antirollback_write_space_mrc_hash()

vb2_error_t antirollback_write_space_mrc_hash ( uint32_t  index,
const uint8_t data,
uint32_t  size 
)

Definition at line 67 of file secdata_mock.c.

Referenced by mrc_cache_update_hash().

Here is the caller graph for this function:

◆ vb2ex_tpm_clear_owner()

vb2_error_t vb2ex_tpm_clear_owner ( struct vb2_context *  ctx)

Definition at line 13 of file secdata_mock.c.