• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
10 AUTH_ROLE CommandAuthRole(TPM_CC commandCode,  // IN: command code
11                           UINT32 handleIndex   // IN: handle index (zero based)
12                           );
13 TPMI_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     );
18 BOOL CommandIsImplemented(TPM_CC commandCode  // IN: command code
19                           );
20 int DecryptSize(TPM_CC commandCode  // IN: commandCode
21                 );
22 int EncryptSize(TPM_CC commandCode  // IN: commandCode
23                 );
24 BOOL IsReadOperation(TPM_CC command  // IN: Command to check
25                      );
26 BOOL IsSessionAllowed(TPM_CC commandCode  // IN: the command to be checked
27                       );
28 BOOL IsWriteOperation(TPM_CC command  // IN: Command to check
29                       );
30 
31 #endif  // __TPM2_COMMANDCODEATTRIBUTES_FP_H
32