| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* TPM Lightweight Command Library. | 6 /* TPM Lightweight Command Library. |
| 7 * | 7 * |
| 8 * A low-level library for interfacing to TPM hardware or an emulator. | 8 * A low-level library for interfacing to TPM hardware or an emulator. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef TPM_LITE_TLCL_H_ | 11 #ifndef TPM_LITE_TLCL_H_ |
| 12 #define TPM_LITE_TLCL_H_ | 12 #define TPM_LITE_TLCL_H_ |
| 13 | 13 |
| 14 #include "sysincludes.h" | 14 #include "sysincludes.h" |
| 15 #include "tss_constants.h" |
| 15 | 16 |
| 16 /*****************************************************************************/ | 17 /*****************************************************************************/ |
| 17 /* Functions to be implemented by the stub library */ | 18 /* Functions to be implemented by the stub library */ |
| 18 | 19 |
| 19 /* Initialize the stub library */ | 20 /* Initialize the stub library */ |
| 20 void TlclStubInit(void); | 21 void TlclStubInit(void); |
| 21 | 22 |
| 22 /* Close and open the device. This is needed for running more complex commands | 23 /* Close and open the device. This is needed for running more complex commands |
| 23 * at user level, such as TPM_TakeOwnership, since the TPM device can be opened | 24 * at user level, such as TPM_TakeOwnership, since the TPM device can be opened |
| 24 * only by one process at a time. | 25 * only by one process at a time. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 uint32_t TlclSetGlobalLock(void); | 128 uint32_t TlclSetGlobalLock(void); |
| 128 | 129 |
| 129 /* Performs a TPM_Extend. | 130 /* Performs a TPM_Extend. |
| 130 */ | 131 */ |
| 131 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); | 132 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); |
| 132 | 133 |
| 133 /* Gets the permission bits for the NVRAM space with |index|. | 134 /* Gets the permission bits for the NVRAM space with |index|. |
| 134 */ | 135 */ |
| 135 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); | 136 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); |
| 136 | 137 |
| 138 /* Gets the entire set of permanent flags. |
| 139 */ |
| 140 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); |
| 141 |
| 142 /* Gets the entire set of volatile (ST_CLEAR) flags. |
| 143 */ |
| 144 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); |
| 145 |
| 137 #endif /* TPM_LITE_TLCL_H_ */ | 146 #endif /* TPM_LITE_TLCL_H_ */ |
| OLD | NEW |