Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: src/tlcl/tlcl.h

Issue 2663002: Add space redefinition test, early NV read test and early extend test. (Closed) Base URL: ssh://git@chromiumos-git/tpm_lite.git
Patch Set: Fix printf Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_ */
« src/testsuite/earlyextend.c ('K') | « src/tlcl/generator.c ('k') | src/tlcl/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698