aboutsummaryrefslogtreecommitdiff
path: root/Sign_fp.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-06-01 18:39:22 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-03 22:11:13 +0000
commit1a1c33357756f2f2a850fce334fbe87dc9889933 (patch)
tree575cda8458937ecca0b817a6c890b57b9b4e1602 /Sign_fp.h
parentf4653188f1726ae31cc481eac56208dfeed7209f (diff)
downloadtpm2-1a1c33357756f2f2a850fce334fbe87dc9889933.tar.gz
Changes to allow compilation of Sign.c
BUG=none TEST=compilation succeeds: cc -Wall -Werror -c -o /dev/null Sign.c Change-Id: Iee1e37d7177eb5fad830ed83e7bd2c4d5f3e76bc Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274667 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
Diffstat (limited to 'Sign_fp.h')
-rw-r--r--Sign_fp.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Sign_fp.h b/Sign_fp.h
new file mode 100644
index 0000000..58ff093
--- /dev/null
+++ b/Sign_fp.h
@@ -0,0 +1,26 @@
+/*
+ * 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_SIGN_FP_H_
+#define __TPM2_SIGN_FP_H_
+
+typedef struct {
+ TPMI_DH_OBJECT keyHandle;
+ TPMT_SIG_SCHEME inScheme;
+ TPM2B_DIGEST digest;
+ TPMT_TK_COMMON validation;
+} Sign_In;
+
+typedef struct {
+ TPMT_SIGNATURE signature;
+} Sign_Out;
+
+TPM_RC TPM2_Sign(
+ Sign_In *in, // IN: input parameter list
+ Sign_Out *out // OUT: output parameter list
+);
+
+#endif // __TPM2_SIGN_FP_H_