blob: d32d974ef7eb34205225cebf77d1f76bd9596cca [file] [log] [blame]
Vadim Bendebury163cddf2015-06-01 18:46:15 -07001/*
2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef __TPM2_STARTAUTHSESSION_FP_H_
8#define __TPM2_STARTAUTHSESSION_FP_H_
9
10typedef struct {
11 TPM_HANDLE tpmKey;
12 TPM_SE sessionType;
13 TPMI_ALG_HASH authHash;
14 TPM2B_NONCE nonceCaller;
15 TPMT_SYM_DEF symmetric;
16 TPMI_DH_ENTITY bind;
17 TPM2B_ENCRYPTED_SECRET encryptedSalt;
18} StartAuthSession_In;
19
20typedef struct {
21 TPM2B_NONCE nonceTPM;
22 TPM_HANDLE sessionHandle;
23} StartAuthSession_Out;
24
25TPM_RC TPM2_StartAuthSession(
26 StartAuthSession_In *in, // IN: input parameter buffer
27 StartAuthSession_Out *out // OUT: output parameter buffer
28);
29
30#endif // __TPM2_STARTAUTHSESSION_FP_H_