Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 1 | // Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
Vadim Bendebury | 7b722a0 | 2015-05-30 05:40:54 | [diff] [blame] | 4 | |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 5 | // THIS CODE IS GENERATED - DO NOT MODIFY! |
| 6 | |
Vadim Bendebury | 776e236 | 2015-09-04 23:14:53 | [diff] [blame] | 7 | #ifndef TPM2_CERTIFYCREATION_FP_H_ |
| 8 | #define TPM2_CERTIFYCREATION_FP_H_ |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 9 | |
| 10 | #include "tpm_generated.h" |
Vadim Bendebury | 7b722a0 | 2015-05-30 05:40:54 | [diff] [blame] | 11 | |
| 12 | typedef struct { |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 13 | TPMI_DH_OBJECT signHandle; |
Vadim Bendebury | f788ffb | 2015-06-05 19:57:27 | [diff] [blame] | 14 | TPMI_DH_OBJECT objectHandle; |
| 15 | TPM2B_DATA qualifyingData; |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 16 | TPM2B_DIGEST creationHash; |
| 17 | TPMT_SIG_SCHEME inScheme; |
| 18 | TPMT_TK_CREATION creationTicket; |
Vadim Bendebury | 7b722a0 | 2015-05-30 05:40:54 | [diff] [blame] | 19 | } CertifyCreation_In; |
| 20 | |
| 21 | typedef struct { |
Vadim Bendebury | f788ffb | 2015-06-05 19:57:27 | [diff] [blame] | 22 | TPM2B_ATTEST certifyInfo; |
| 23 | TPMT_SIGNATURE signature; |
Vadim Bendebury | 7b722a0 | 2015-05-30 05:40:54 | [diff] [blame] | 24 | } CertifyCreation_Out; |
| 25 | |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 26 | // Executes CertifyCreation with request handles and parameters from |
| 27 | // |in| and computes response handles and parameters to |out|. |
| 28 | TPM_RC TPM2_CertifyCreation(CertifyCreation_In* in, CertifyCreation_Out* out); |
Vadim Bendebury | 7b722a0 | 2015-05-30 05:40:54 | [diff] [blame] | 29 | |
Vadim Bendebury | 776e236 | 2015-09-04 23:14:53 | [diff] [blame] | 30 | // Unmarshals any request parameters starting at |request_parameter_buffer|. |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 31 | // Executes command. Marshals any response handles and parameters to the |
Vadim Bendebury | 776e236 | 2015-09-04 23:14:53 | [diff] [blame] | 32 | // global response buffer and computes |*response_handle_buffer_size| and |
| 33 | // |*response_parameter_buffer_size|. If |tag| == TPM_ST_SESSIONS, marshals |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 34 | // parameter_size indicating the size of the parameter area. parameter_size |
| 35 | // field is located between the handle area and parameter area. |
| 36 | TPM_RC Exec_CertifyCreation(TPMI_ST_COMMAND_TAG tag, |
Vadim Bendebury | 776e236 | 2015-09-04 23:14:53 | [diff] [blame] | 37 | BYTE** request_parameter_buffer, |
| 38 | INT32* request_parameter_buffer_size, |
| 39 | TPM_HANDLE request_handles[], |
| 40 | UINT32* response_handle_buffer_size, |
| 41 | UINT32* response_parameter_buffer_size); |
Jocelyn Bohr | a4ed3aa | 2015-07-30 17:44:16 | [diff] [blame] | 42 | |
| 43 | #endif // TPM2_CERTIFYCREATION_FP_H |