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_ */ 20