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

Unified Diff: src/platform/vboot_reference/vboot_firmware/include/tlcl.h

Issue 2225005: New anti-rollback strategy (no TPM NVRAM write cycles for locking). (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: comment changes Created 10 years, 7 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/platform/vboot_reference/vboot_firmware/include/tlcl.h
diff --git a/src/platform/vboot_reference/vboot_firmware/include/tlcl.h b/src/platform/vboot_reference/vboot_firmware/include/tlcl.h
index 362b61e11b2d932cf73479dcf97a5e0cbd1de875..655b87763050212edfaee5ddadeab2e3deea456f 100644
--- a/src/platform/vboot_reference/vboot_firmware/include/tlcl.h
+++ b/src/platform/vboot_reference/vboot_firmware/include/tlcl.h
@@ -66,6 +66,10 @@ void TlclReadLock(uint32_t index);
*/
void TlclAssertPhysicalPresence(void);
+/* Turns off physical presence and locks it off until next reboot.
+ */
+uint32_t TlclLockPhysicalPresence(void);
+
/* Sets the nvLocked bit.
*/
void TlclSetNvLocked(void);
@@ -78,16 +82,20 @@ int TlclIsOwned(void);
*/
void TlclForceClear(void);
-/* Issues a PhysicalEnable.
+/* Issues a SetEnable.
*/
-void TlclPhysicalEnable(void);
+void TlclSetEnable(void);
-/* Issues a PhysicalSetDeactivated. Pass 0 to activate. Returns result code.
+/* Issues a SetDeactivated. Pass 0 to activate. Returns result code.
*/
-int TlclPhysicalSetDeactivated(uint8_t flag);
+int TlclSetDeactivated(uint8_t flag);
/* Gets some permanent flags of interest. (Add more here as needed.)
*/
int TlclGetFlags(uint8_t* disable, uint8_t* deactivated);
+/* Sets the bGlobalLock flag, which only a reboot can clear.
+ */
+uint32_t TlclSetGlobalLock(void);
+
#endif /* TPM_LITE_TLCL_H_ */

Powered by Google App Engine
This is Rietveld 408576698