| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef _VBIOS_CACHE_HASH_TPM_H_ |
| 4 | #define _VBIOS_CACHE_HASH_TPM_H_ |
| 5 | |
| 6 | #include <types.h> |
| 7 | |
| 8 | /* |
| 9 | * Updates vbios cache hash. |
| 10 | */ |
| 11 | void vbios_cache_update_hash(const uint8_t *data, size_t size); |
| 12 | |
| 13 | /* |
| 14 | * Verifies vbios cache hash which is stored in FMAP region. |
| 15 | */ |
| 16 | enum cb_err vbios_cache_verify_hash(const uint8_t *data, size_t size); |
| 17 | |
| 18 | #endif /* _VBIOS_CACHE_HASH_TPM_H_ */ |