aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PolicyCpHash_fp.h19
-rw-r--r--TPM_Types.h1
2 files changed, 20 insertions, 0 deletions
diff --git a/PolicyCpHash_fp.h b/PolicyCpHash_fp.h
new file mode 100644
index 0000000..fef41ea
--- /dev/null
+++ b/PolicyCpHash_fp.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __TPM2_POLICYCPHASH_FP_H_
+#define __TPM2_POLICYCPHASH_FP_H_
+
+typedef struct {
+ TPM_HANDLE policySession;
+ TPM2B_DIGEST cpHashA;
+} PolicyCpHash_In;
+
+TPM_RC TPM2_PolicyCpHash(
+ PolicyCpHash_In *in // IN: input parameter list
+);
+
+#endif // __TPM2_POLICYCPHASH_FP_H_
diff --git a/TPM_Types.h b/TPM_Types.h
index f207202..51aadb1 100644
--- a/TPM_Types.h
+++ b/TPM_Types.h
@@ -1344,6 +1344,7 @@ enum {
RC_PolicyAuthorize_checkTicket,
RC_PolicyAuthorize_keySign,
RC_PolicyCommandCode_code,
+ RC_PolicyCpHash_cpHashA,
};
enum {