aboutsummaryrefslogtreecommitdiff
path: root/DRTM.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-05-20 10:32:25 -0700
committerVadim Bendebury <vbendeb@chromium.org>2015-05-20 22:32:05 -0700
commit5679752bf24c21135884e987c4077e2f71848971 (patch)
tree3e680dd91a7af84c45ea1170ee88225bd4ad32c8 /DRTM.c
downloadtpm2-5679752bf24c21135884e987c4077e2f71848971.tar.gz
Initial commit to seed TPM2.0 source code directory
LICENSE file text copied from TCG library specification. README describes the procedure used to extract source code from parts 3 and 4 of the specification. The python scripts and part{34}.txt files will be removed in the following commits. Change-Id: Ie281e6e988481831f33483053455e8aff8f3f75f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'DRTM.c')
-rw-r--r--DRTM.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/DRTM.c b/DRTM.c
new file mode 100644
index 0000000..d102ce6
--- /dev/null
+++ b/DRTM.c
@@ -0,0 +1,52 @@
+// This file was extracted from the TCG Published
+// Trusted Platform Module Library
+// Part 4: Supporting Routines
+// Family "2.0"
+// Level 00 Revision 01.16
+// October 30, 2014
+
+#include "InternalRoutines.h"
+//
+// Functions
+//
+// Signal_Hash_Start()
+//
+// This function interfaces between the platform code and _TPM_Hash_Start().
+//
+LIB_EXPORT void
+Signal_Hash_Start(
+ void
+ )
+{
+ _TPM_Hash_Start();
+ return;
+}
+//
+//
+// Signal_Hash_Data()
+//
+// This function interfaces between the platform code and _TPM_Hash_Data().
+//
+LIB_EXPORT void
+Signal_Hash_Data(
+ unsigned int size,
+ unsigned char *buffer
+ )
+{
+ _TPM_Hash_Data(size, buffer);
+ return;
+}
+//
+//
+// Signal_Hash_End()
+//
+// This function interfaces between the platform code and _TPM_Hash_End().
+//
+LIB_EXPORT void
+Signal_Hash_End(
+ void
+ )
+{
+ _TPM_Hash_End();
+ return;
+}