blob: b8d54f84ea36adadebb686c9c8499e12f876efc1 [file] [log] [blame]
Vadim Bendeburyda725062015-05-31 14:41:18 -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_SESSIONPROCESS_FP_H
8#define __TPM2_SESSIONPROCESS_FP_H
9
10void BuildResponseSession(
11 TPM_ST tag, // IN: tag
12 TPM_CC commandCode, // IN: commandCode
13 UINT32 resHandleSize, // IN: size of response handle buffer
14 UINT32 resParmSize, // IN: size of response parameter buffer
15 UINT32 *resSessionSize // OUT: response session area
16 );
17TPM_RC CheckAuthNoSession(
18 TPM_CC commandCode, // IN: Command Code
19 UINT32 handleNum, // IN: number of handles in command
20 TPM_HANDLE handles[], // IN: array of handle
21 BYTE *parmBufferStart, // IN: start of parameter buffer
22 UINT32 parmBufferSize // IN: size of parameter buffer
23 );
24TPM_RC ParseSessionBuffer(
25 TPM_CC commandCode, // IN: Command code
26 UINT32 handleNum, // IN: number of element in handle array
27 TPM_HANDLE handles[], // IN: array of handle
28 BYTE *sessionBufferStart, // IN: start of session buffer
29 UINT32 sessionBufferSize, // IN: size of session buffer
30 BYTE *parmBufferStart, // IN: start of parameter buffer
31 UINT32 parmBufferSize // IN: size of parameter buffer
32 );
33
34#endif // __TPM2_SESSIONPROCESS_FP_H