Index: src/tlcl/tlcl.h |
diff --git a/src/tlcl/tlcl.h b/src/tlcl/tlcl.h |
index 63447560ba0d8c8f309a36bbf55730c0e73aa2cf..99f0262b4a1828cf01db9ea9d363fb7e1e758408 100644 |
--- a/src/tlcl/tlcl.h |
+++ b/src/tlcl/tlcl.h |
@@ -68,16 +68,25 @@ void TlclSetLogLevel(int level); |
*/ |
void TlclStartup(void); |
-/* Run the self test. Note---this is synchronous. To run this in parallel |
+/* Runs the self test. Note---this is synchronous. To run this in parallel |
* with other firmware, use ContinueSelfTest. |
*/ |
void TlclSelftestfull(void); |
+/* Runs the self test in the background. |
+ */ |
+void TlclContinueSelfTest(void); |
+ |
/* Defines a space with permission [perm]. [index] is the index for the space, |
* [size] the usable data size. Errors are ignored. |
*/ |
void TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size); |
+/* Defines a space with permission [perm]. [index] is the index for the space, |
+ * [size] the usable data size. Returns the TPM error code. |
+ */ |
+uint32_t TlclDefineSpaceResult(uint32_t index, uint32_t perm, uint32_t size); |
+ |
/* Writes [length] bytes of [data] to space at [index]. The TPM error code is |
* returned (0 for success). |
*/ |
@@ -100,6 +109,10 @@ void TlclReadLock(uint32_t index); |
*/ |
void TlclAssertPhysicalPresence(void); |
+/* Asserts physical presence in software. Return error code. |
+ */ |
+uint32_t TlclAssertPhysicalPresenceResult(void); |
+ |
/* Turns off physical presence and locks it off until next reboot. |
*/ |
uint32_t TlclLockPhysicalPresence(void); |
@@ -132,4 +145,8 @@ int TlclGetFlags(uint8_t* disable, uint8_t* deactivated); |
*/ |
uint32_t TlclSetGlobalLock(void); |
+/* Performs a TPM_Extend. |
+ */ |
+uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); |
+ |
#endif /* TPM_LITE_TLCL_H_ */ |