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. 4 5 // THIS CODE IS GENERATED - DO NOT MODIFY! 6 7 #ifndef TPM2_INCREMENTALSELFTEST_FP_H_ 8 #define TPM2_INCREMENTALSELFTEST_FP_H_ 9 10 #include "tpm_generated.h" 11 12 typedef struct { TPML_ALG toTest; } IncrementalSelfTest_In; 13 14 typedef struct { TPML_ALG toDoList; } IncrementalSelfTest_Out; 15 16 // Executes IncrementalSelfTest with request handles and parameters from 17 // |in| and computes response handles and parameters to |out|. 18 TPM_RC TPM2_IncrementalSelfTest(IncrementalSelfTest_In* in, 19 IncrementalSelfTest_Out* out); 20 21 // Initializes handle fields in |target| from |request_handles|. Unmarshals 22 // parameter fields in |target| from |buffer|. 23 TPM_RC IncrementalSelfTest_In_Unmarshal(IncrementalSelfTest_In* target, 24 TPM_HANDLE request_handles[], 25 BYTE** buffer, 26 INT32* size); 27 28 // Marshals response handles and parameters from |source| to |buffer|. Computes 29 // and marshals the size of the parameter area (parameter_size) if |tag| == 30 // TPM_ST_SESSIONS. Returns size of (parameter area + handle area) in bytes. 31 // Return value does not include parameter_size field. 32 UINT16 IncrementalSelfTest_Out_Marshal(IncrementalSelfTest_Out* source, 33 TPMI_ST_COMMAND_TAG tag, 34 BYTE** buffer, 35 INT32* size); 36 37 // Unmarshals any request parameters starting at |request_parameter_buffer|. 38 // Executes command. Marshals any response handles and parameters to the 39 // global response buffer and computes |*response_handle_buffer_size| and 40 // |*response_parameter_buffer_size|. If |tag| == TPM_ST_SESSIONS, marshals 41 // parameter_size indicating the size of the parameter area. parameter_size 42 // field is located between the handle area and parameter area. 43 TPM_RC Exec_IncrementalSelfTest(TPMI_ST_COMMAND_TAG tag, 44 BYTE** request_parameter_buffer, 45 INT32* request_parameter_buffer_size, 46 TPM_HANDLE request_handles[], 47 UINT32* response_handle_buffer_size, 48 UINT32* response_parameter_buffer_size); 49 50 #endif // TPM2_INCREMENTALSELFTEST_FP_H 51