diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-05-29 22:51:10 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-03 21:18:19 +0000 |
commit | 30f6deee1b441af700835a02a33bcf3b04c7e813 (patch) | |
tree | 2b10d714962a732c190a1f39ebd487b1519df5c3 /Duplicate_fp.h | |
parent | 06146759b6b8dd2d8915a6524377d668c54241d6 (diff) | |
download | tpm2-30f6deee1b441af700835a02a33bcf3b04c7e813.tar.gz |
Changes to allow compilation of Duplicate.c
BUG=none
TEST=compilation succeeds:
cc -Wall -Werror -c -o /dev/null Duplicate.c
Change-Id: Ib618c3f49e1798aaf804d5e96527011319efcd61
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274171
Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
Diffstat (limited to 'Duplicate_fp.h')
-rw-r--r-- | Duplicate_fp.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Duplicate_fp.h b/Duplicate_fp.h new file mode 100644 index 0000000..8ad8fb8 --- /dev/null +++ b/Duplicate_fp.h @@ -0,0 +1,27 @@ +/* + * Copyright 2015 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __TPM2_DUPLICATE_FP_H +#define __TPM2_DUPLICATE_FP_H +typedef struct { + TPMI_DH_OBJECT objectHandle; + TPMI_DH_OBJECT newParentHandle; + TPMT_SYM_DEF_OBJECT symmetricAlg; + TPM2B_DATA encryptionKeyIn; +} Duplicate_In; + +typedef struct { + TPM2B_PRIVATE duplicate; + TPM2B_ENCRYPTED_SECRET outSymSeed; + TPM2B_DATA encryptionKeyOut; +} Duplicate_Out; + +TPM_RC TPM2_Duplicate( + Duplicate_In *in, // IN: input parameter list + Duplicate_Out *out // OUT: output parameter list + ); + +#endif // __TPM2_DUPLICATE_FP_H |