blob: c9d898e482e3480ffa77772169b21608dea7ed11 [file] [log] [blame]
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -07001// 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 Bendeburye92b6142015-05-29 23:05:42 -07004
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -07005// THIS CODE IS GENERATED - DO NOT MODIFY!
6
Vadim Bendebury776e2362015-09-04 16:14:53 -07007#ifndef TPM2_INCREMENTALSELFTEST_FP_H_
8#define TPM2_INCREMENTALSELFTEST_FP_H_
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -07009
10#include "tpm_generated.h"
Vadim Bendeburye92b6142015-05-29 23:05:42 -070011
Vadim Bendebury9de49d32019-01-15 09:36:48 -080012typedef struct {
13 TPML_ALG toTest;
14} IncrementalSelfTest_In;
Vadim Bendeburye92b6142015-05-29 23:05:42 -070015
Vadim Bendebury9de49d32019-01-15 09:36:48 -080016typedef struct {
17 TPML_ALG toDoList;
18} IncrementalSelfTest_Out;
Vadim Bendeburye92b6142015-05-29 23:05:42 -070019
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070020// Executes IncrementalSelfTest with request handles and parameters from
21// |in| and computes response handles and parameters to |out|.
22TPM_RC TPM2_IncrementalSelfTest(IncrementalSelfTest_In* in,
23 IncrementalSelfTest_Out* out);
Vadim Bendeburye92b6142015-05-29 23:05:42 -070024
Vadim Bendebury776e2362015-09-04 16:14:53 -070025// Unmarshals any request parameters starting at |request_parameter_buffer|.
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070026// Executes command. Marshals any response handles and parameters to the
Vadim Bendebury776e2362015-09-04 16:14:53 -070027// global response buffer and computes |*response_handle_buffer_size| and
28// |*response_parameter_buffer_size|. If |tag| == TPM_ST_SESSIONS, marshals
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070029// parameter_size indicating the size of the parameter area. parameter_size
30// field is located between the handle area and parameter area.
31TPM_RC Exec_IncrementalSelfTest(TPMI_ST_COMMAND_TAG tag,
Vadim Bendebury776e2362015-09-04 16:14:53 -070032 BYTE** request_parameter_buffer,
33 INT32* request_parameter_buffer_size,
34 TPM_HANDLE request_handles[],
35 UINT32* response_handle_buffer_size,
36 UINT32* response_parameter_buffer_size);
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070037
38#endif // TPM2_INCREMENTALSELFTEST_FP_H