/* Copyright 2018 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Compatibility layer between the TPM code and PinWeaver. * * This is needed because the headers for the TPM are not compatible with the * headers used by pinweaver.c. It also makes it easier to mock the * functionality derived from the TPM code. */ #ifndef __CROS_EC_INCLUDE_PINWEAVER_TPM_IMPORTS_H #define __CROS_EC_INCLUDE_PINWEAVER_TPM_IMPORTS_H #include #include /* This is used to get the storage seed from the TPM implementation so * TPM_Clear() will break the keys used by PinWeaver so that any metadata * that persists on the machine storage is unusable by attackers. */ void get_storage_seed(void *buf, size_t *len); #endif /* __CROS_EC_INCLUDE_PINWEAVER_TPM_IMPORTS_H */