| 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 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated, | 120 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated, |
| 121 uint8_t* nvlocked); | 121 uint8_t* nvlocked); |
| 122 | 122 |
| 123 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error | 123 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error |
| 124 * code is returned. | 124 * code is returned. |
| 125 */ | 125 */ |
| 126 uint32_t TlclSetGlobalLock(void); | 126 uint32_t TlclSetGlobalLock(void); |
| 127 | 127 |
| 128 /* Performs a TPM_Extend. | 128 /* Performs a TPM_Extend. |
| 129 */ | 129 */ |
| 130 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); | 130 uint32_t TlclExtend(int pcr_num, const uint8_t* in_digest, uint8_t* out_digest); |
| 131 | 131 |
| 132 /* Gets the permission bits for the NVRAM space with |index|. | 132 /* Gets the permission bits for the NVRAM space with |index|. |
| 133 */ | 133 */ |
| 134 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); | 134 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); |
| 135 | 135 |
| 136 /* Gets the entire set of permanent flags. | 136 /* Gets the entire set of permanent flags. |
| 137 */ | 137 */ |
| 138 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); | 138 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); |
| 139 | 139 |
| 140 /* Gets the entire set of volatile (ST_CLEAR) flags. | 140 /* Gets the entire set of volatile (ST_CLEAR) flags. |
| 141 */ | 141 */ |
| 142 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); | 142 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); |
| 143 | 143 |
| 144 #endif /* TPM_LITE_TLCL_H_ */ | 144 #endif /* TPM_LITE_TLCL_H_ */ |
| OLD | NEW |