aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Session_fp.h9
-rw-r--r--StartAuthSession_fp.h30
-rw-r--r--TPM_Types.h5
3 files changed, 44 insertions, 0 deletions
diff --git a/Session_fp.h b/Session_fp.h
index eb3f302..1e93bb9 100644
--- a/Session_fp.h
+++ b/Session_fp.h
@@ -41,6 +41,15 @@ TPM_RC SessionContextSave (
TPM_HANDLE handle, // IN: session handle
CONTEXT_COUNTER *contextID // OUT: assigned contextID
);
+TPM_RC SessionCreate(
+ TPM_SE sessionType, // IN: the session type
+ TPMI_ALG_HASH authHash, // IN: the hash algorithm
+ TPM2B_NONCE *nonceCaller, // IN: initial nonceCaller
+ TPMT_SYM_DEF *symmetric, // IN: the symmetric algorithm
+ TPMI_DH_ENTITY bind, // IN: the bind object
+ TPM2B_DATA *seed, // IN: seed data
+ TPM_HANDLE *sessionHandle // OUT: the session handle
+ );
void SessionFlush(
TPM_HANDLE handle // IN: loaded or saved session handle
);
diff --git a/StartAuthSession_fp.h b/StartAuthSession_fp.h
new file mode 100644
index 0000000..d32d974
--- /dev/null
+++ b/StartAuthSession_fp.h
@@ -0,0 +1,30 @@
+/*
+ * 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_STARTAUTHSESSION_FP_H_
+#define __TPM2_STARTAUTHSESSION_FP_H_
+
+typedef struct {
+ TPM_HANDLE tpmKey;
+ TPM_SE sessionType;
+ TPMI_ALG_HASH authHash;
+ TPM2B_NONCE nonceCaller;
+ TPMT_SYM_DEF symmetric;
+ TPMI_DH_ENTITY bind;
+ TPM2B_ENCRYPTED_SECRET encryptedSalt;
+} StartAuthSession_In;
+
+typedef struct {
+ TPM2B_NONCE nonceTPM;
+ TPM_HANDLE sessionHandle;
+} StartAuthSession_Out;
+
+TPM_RC TPM2_StartAuthSession(
+ StartAuthSession_In *in, // IN: input parameter buffer
+ StartAuthSession_Out *out // OUT: output parameter buffer
+);
+
+#endif // __TPM2_STARTAUTHSESSION_FP_H_
diff --git a/TPM_Types.h b/TPM_Types.h
index 7ccd9fc..289f3cc 100644
--- a/TPM_Types.h
+++ b/TPM_Types.h
@@ -1419,6 +1419,11 @@ enum {
RC_Sign_inScheme,
RC_Sign_keyHandle,
RC_Sign_validation,
+ RC_StartAuthSession_bind,
+ RC_StartAuthSession_encryptedSalt,
+ RC_StartAuthSession_nonceCaller,
+ RC_StartAuthSession_symmetric,
+ RC_StartAuthSession_tpmKey,
};
enum {