blob: 99e0bfbcb5f2ec7a7a9ef0b375af2ce2215b5c94 [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 Bendeburycddcbfe2015-05-29 23:03:58 -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_HASHSEQUENCESTART_FP_H_
8#define TPM2_HASHSEQUENCESTART_FP_H_
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -07009
10#include "tpm_generated.h"
Vadim Bendeburycddcbfe2015-05-29 23:03:58 -070011
12typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070013 TPM2B_AUTH auth;
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070014 TPMI_ALG_HASH hashAlg;
Vadim Bendeburycddcbfe2015-05-29 23:03:58 -070015} HashSequenceStart_In;
16
Vadim Bendebury9de49d32019-01-15 09:36:48 -080017typedef struct {
18 TPMI_DH_OBJECT sequenceHandle;
19} HashSequenceStart_Out;
Vadim Bendeburycddcbfe2015-05-29 23:03:58 -070020
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070021// Executes HashSequenceStart with request handles and parameters from
22// |in| and computes response handles and parameters to |out|.
23TPM_RC TPM2_HashSequenceStart(HashSequenceStart_In* in,
24 HashSequenceStart_Out* out);
Vadim Bendeburycddcbfe2015-05-29 23:03:58 -070025
Vadim Bendebury776e2362015-09-04 16:14:53 -070026// Unmarshals any request parameters starting at |request_parameter_buffer|.
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070027// Executes command. Marshals any response handles and parameters to the
Vadim Bendebury776e2362015-09-04 16:14:53 -070028// global response buffer and computes |*response_handle_buffer_size| and
29// |*response_parameter_buffer_size|. If |tag| == TPM_ST_SESSIONS, marshals
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070030// parameter_size indicating the size of the parameter area. parameter_size
31// field is located between the handle area and parameter area.
32TPM_RC Exec_HashSequenceStart(TPMI_ST_COMMAND_TAG tag,
Vadim Bendebury776e2362015-09-04 16:14:53 -070033 BYTE** request_parameter_buffer,
34 INT32* request_parameter_buffer_size,
35 TPM_HANDLE request_handles[],
36 UINT32* response_handle_buffer_size,
37 UINT32* response_parameter_buffer_size);
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070038
39#endif // TPM2_HASHSEQUENCESTART_FP_H