diff options
author | kavsrf <kavsrf@gmail.com> | 2017-04-17 23:30:06 +0300 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-18 15:41:16 +0200 |
commit | 3058711f8b12cf11585e0eda2a1b573f0d871667 (patch) | |
tree | 3bfcf8f345924c10e0e11fd266b7b4ab133fbe54 /DcsCfg/DcsCfgTpm.c | |
parent | 3cddd24df26085682c819a3c8e9e3ce21a2872da (diff) | |
download | VeraCrypt-DCS-3058711f8b12cf11585e0eda2a1b573f0d871667.tar.gz VeraCrypt-DCS-3058711f8b12cf11585e0eda2a1b573f0d871667.zip |
TPM 2.0
Diffstat (limited to 'DcsCfg/DcsCfgTpm.c')
-rw-r--r-- | DcsCfg/DcsCfgTpm.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/DcsCfg/DcsCfgTpm.c b/DcsCfg/DcsCfgTpm.c index 5003132..5880c19 100644 --- a/DcsCfg/DcsCfgTpm.c +++ b/DcsCfg/DcsCfgTpm.c @@ -71,7 +71,7 @@ Tpm12NvList( }
EFI_STATUS
-Tpm12DcsConfigure(
+TpmDcsConfigure(
) {
EFI_STATUS res;
Password pwd;
@@ -86,3 +86,21 @@ err: ERR_PRINT(L"%r, line %d", res, gCELine);
return res;
}
+
+//////////////////////////////////////////////////////////////////////////
+// TPM 2.0
+//////////////////////////////////////////////////////////////////////////
+EFI_STATUS
+Tpm2ListPcrs(
+ UINT32 sPcr,
+ UINT32 ePcr
+ ) {
+ EFI_STATUS res;
+ res = InitTpm20();
+ if (EFI_ERROR(res)) {
+ ERR_PRINT(L"%r\n", res);
+ return res;
+ }
+ return DcsTpm2DumpPcrs(sPcr, ePcr);
+}
+
|