coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mrc_cache_hash_tpm.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef _MRC_CACHE_HASH_TPM_H_
4
#define _MRC_CACHE_HASH_TPM_H_
5
6
#include <types.h>
7
8
/*
9
* Updates mrc cache hash if it differs.
10
*/
11
void
mrc_cache_update_hash
(
uint32_t
index,
const
uint8_t
*data,
size_t
size);
12
13
/*
14
* Verifies mrc cache hash which is stored somewhere.
15
* return 1 verification was successful and 0 for error.
16
*/
17
int
mrc_cache_verify_hash
(
uint32_t
index,
const
uint8_t
*data,
size_t
size);
18
19
#endif
/* _MRC_CACHE_HASH_TPM_H_ */
mrc_cache_update_hash
void mrc_cache_update_hash(uint32_t index, const uint8_t *data, size_t size)
Definition:
mrc_cache_hash_tpm.c:12
mrc_cache_verify_hash
int mrc_cache_verify_hash(uint32_t index, const uint8_t *data, size_t size)
Definition:
mrc_cache_hash_tpm.c:58
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
src
security
vboot
mrc_cache_hash_tpm.h
Generated by
1.9.1