blob: 0959377d4a84533ae79e32f3222459223da33f6d [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 {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070011 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;
Vadim Bendebury163cddf2015-06-01 18:46:15 -070018} StartAuthSession_In;
19
20typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070021 TPM2B_NONCE nonceTPM;
22 TPM_HANDLE sessionHandle;
Vadim Bendebury163cddf2015-06-01 18:46:15 -070023} StartAuthSession_Out;
24
25TPM_RC TPM2_StartAuthSession(
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070026 StartAuthSession_In *in, // IN: input parameter buffer
27 StartAuthSession_Out *out // OUT: output parameter buffer
28 );
Vadim Bendebury163cddf2015-06-01 18:46:15 -070029
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070030#endif // __TPM2_STARTAUTHSESSION_FP_H_