blob: a0999cf673de9f82c6a10a1a6c6f54000249654b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Copyright 2015 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __TPM2_COMMANDCODEATTRIBUTES_FP_H
#define __TPM2_COMMANDCODEATTRIBUTES_FP_H
AUTH_ROLE CommandAuthRole(TPM_CC commandCode, // IN: command code
UINT32 handleIndex // IN: handle index (zero based)
);
TPMI_YES_NO CommandCapGetCCList(
TPM_CC commandCode, // IN: start command code
UINT32 count, // IN: maximum count for number of entries in 'commandList'
TPML_CCA *commandList // OUT: list of TPMA_CC
);
BOOL CommandIsImplemented(TPM_CC commandCode // IN: command code
);
int DecryptSize(TPM_CC commandCode // IN: commandCode
);
int EncryptSize(TPM_CC commandCode // IN: commandCode
);
BOOL IsReadOperation(TPM_CC command // IN: Command to check
);
BOOL IsSessionAllowed(TPM_CC commandCode // IN: the command to be checked
);
BOOL IsWriteOperation(TPM_CC command // IN: Command to check
);
#endif // __TPM2_COMMANDCODEATTRIBUTES_FP_H
|