blob: 6bdc841bc83a835b8d56a44f686edfdc7ec42031 [file] [log] [blame]
Vadim Bendebury258ca732015-05-28 16:35:41 -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_COMMANDCODEATTRIBUTES_FP_H
8#define __TPM2_COMMANDCODEATTRIBUTES_FP_H
9
Vadim Bendebury3d5312a2015-06-01 18:19:06 -070010AUTH_ROLE CommandAuthRole(
11 TPM_CC commandCode, // IN: command code
12 UINT32 handleIndex // IN: handle index (zero based)
13 );
Vadim Bendeburybbd79002015-05-31 14:44:07 -070014TPMI_YES_NO CommandCapGetCCList(
15 TPM_CC commandCode, // IN: start command code
16 UINT32 count, // IN: maximum count for number of entries in
17 // 'commandList'
18 TPML_CCA *commandList // OUT: list of TPMA_CC
19);
Vadim Bendebury258ca732015-05-28 16:35:41 -070020BOOL CommandIsImplemented(
21 TPM_CC commandCode // IN: command code
22 );
Vadim Bendebury3d5312a2015-06-01 18:19:06 -070023int DecryptSize(
24 TPM_CC commandCode // IN: commandCode
25 );
26int EncryptSize(
27 TPM_CC commandCode // IN: commandCode
28 );
Vadim Bendebury6c73a9e2015-05-31 16:06:18 -070029BOOL IsReadOperation(
30 TPM_CC command // IN: Command to check
31 );
Vadim Bendebury3d5312a2015-06-01 18:19:06 -070032BOOL IsSessionAllowed(
33 TPM_CC commandCode // IN: the command to be checked
34 );
Vadim Bendebury6c73a9e2015-05-31 16:06:18 -070035BOOL IsWriteOperation(
36 TPM_CC command // IN: Command to check
37 );
Vadim Bendebury258ca732015-05-28 16:35:41 -070038
39#endif // __TPM2_COMMANDCODEATTRIBUTES_FP_H