blob: 5b63f2236b64c8ab7047150e9642374937409c78 [file] [log] [blame]
Vadim Bendeburybde479a2015-05-29 22:48:02 -07001/*
2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef __TPM2_CREATE_FP_H
8#define __TPM2_CREATE_FP_H
9
10typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070011 TPM2B_PUBLIC inPublic;
12 TPMI_DH_OBJECT parentHandle;
13 TPML_PCR_SELECTION creationPCR;
14 TPM2B_DATA outsideInfo;
15 TPM2B_SENSITIVE_CREATE inSensitive;
Vadim Bendeburybde479a2015-05-29 22:48:02 -070016} Create_In;
17
18typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070019 TPM2B_PUBLIC outPublic;
20 TPM2B_CREATION_DATA creationData;
21 TPM2B_DIGEST creationHash;
22 TPMT_TK_CREATION creationTicket;
23 TPM2B_PRIVATE outPrivate;
Vadim Bendeburybde479a2015-05-29 22:48:02 -070024} Create_Out;
25
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070026TPM_RC TPM2_Create(Create_In *in, // IN: input parameter list
27 Create_Out *out // OUT: output parameter list
Vadim Bendeburybde479a2015-05-29 22:48:02 -070028 );
29
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070030#endif // __TPM2_CREATE_FP_H