blob: fdfc274c5403b9fd812a7e7e158dd4bea0b67e58 [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 );
Vadim Bendebury1bb3d5f2015-06-01 18:07:11 -070024BOOL IsDAExempted(
25 TPM_HANDLE handle // IN: entity handle
26 );
Vadim Bendeburyda725062015-05-31 14:41:18 -070027TPM_RC ParseSessionBuffer(
28 TPM_CC commandCode, // IN: Command code
29 UINT32 handleNum, // IN: number of element in handle array
30 TPM_HANDLE handles[], // IN: array of handle
31 BYTE *sessionBufferStart, // IN: start of session buffer
32 UINT32 sessionBufferSize, // IN: size of session buffer
33 BYTE *parmBufferStart, // IN: start of parameter buffer
34 UINT32 parmBufferSize // IN: size of parameter buffer
35 );
36
37#endif // __TPM2_SESSIONPROCESS_FP_H