blob: a0999cf673de9f82c6a10a1a6c6f54000249654b [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 Bendeburyf788ffb2015-06-05 12:57:27 -070010AUTH_ROLE CommandAuthRole(TPM_CC commandCode, // IN: command code
11 UINT32 handleIndex // IN: handle index (zero based)
Vadim Bendebury258ca732015-05-28 16:35:41 -070012 );
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070013TPMI_YES_NO CommandCapGetCCList(
14 TPM_CC commandCode, // IN: start command code
15 UINT32 count, // IN: maximum count for number of entries in 'commandList'
16 TPML_CCA *commandList // OUT: list of TPMA_CC
17 );
18BOOL CommandIsImplemented(TPM_CC commandCode // IN: command code
19 );
20int DecryptSize(TPM_CC commandCode // IN: commandCode
21 );
22int EncryptSize(TPM_CC commandCode // IN: commandCode
23 );
24BOOL IsReadOperation(TPM_CC command // IN: Command to check
25 );
26BOOL IsSessionAllowed(TPM_CC commandCode // IN: the command to be checked
27 );
28BOOL IsWriteOperation(TPM_CC command // IN: Command to check
29 );
Vadim Bendebury258ca732015-05-28 16:35:41 -070030
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070031#endif // __TPM2_COMMANDCODEATTRIBUTES_FP_H