Vadim Bendebury | 30f6dee | 2015-05-29 22:51:10 -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_DUPLICATE_FP_H |
| 8 | #define __TPM2_DUPLICATE_FP_H |
| 9 | typedef struct { |
| 10 | TPMI_DH_OBJECT objectHandle; |
| 11 | TPMI_DH_OBJECT newParentHandle; |
| 12 | TPMT_SYM_DEF_OBJECT symmetricAlg; |
| 13 | TPM2B_DATA encryptionKeyIn; |
| 14 | } Duplicate_In; |
| 15 | |
| 16 | typedef struct { |
| 17 | TPM2B_PRIVATE duplicate; |
| 18 | TPM2B_ENCRYPTED_SECRET outSymSeed; |
| 19 | TPM2B_DATA encryptionKeyOut; |
| 20 | } Duplicate_Out; |
| 21 | |
| 22 | TPM_RC TPM2_Duplicate( |
| 23 | Duplicate_In *in, // IN: input parameter list |
| 24 | Duplicate_Out *out // OUT: output parameter list |
| 25 | ); |
| 26 | |
| 27 | #endif // __TPM2_DUPLICATE_FP_H |