Vadim Bendebury | bde479a | 2015-05-29 22:48:02 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 10 | typedef struct { |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 11 | TPM2B_PUBLIC inPublic; |
| 12 | TPMI_DH_OBJECT parentHandle; |
| 13 | TPML_PCR_SELECTION creationPCR; |
| 14 | TPM2B_DATA outsideInfo; |
| 15 | TPM2B_SENSITIVE_CREATE inSensitive; |
Vadim Bendebury | bde479a | 2015-05-29 22:48:02 -0700 | [diff] [blame] | 16 | } Create_In; |
| 17 | |
| 18 | typedef struct { |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 19 | TPM2B_PUBLIC outPublic; |
| 20 | TPM2B_CREATION_DATA creationData; |
| 21 | TPM2B_DIGEST creationHash; |
| 22 | TPMT_TK_CREATION creationTicket; |
| 23 | TPM2B_PRIVATE outPrivate; |
Vadim Bendebury | bde479a | 2015-05-29 22:48:02 -0700 | [diff] [blame] | 24 | } Create_Out; |
| 25 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 26 | TPM_RC TPM2_Create(Create_In *in, // IN: input parameter list |
| 27 | Create_Out *out // OUT: output parameter list |
Vadim Bendebury | bde479a | 2015-05-29 22:48:02 -0700 | [diff] [blame] | 28 | ); |
| 29 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 30 | #endif // __TPM2_CREATE_FP_H |