summaryrefslogtreecommitdiff
path: root/src/include/capabilities.h
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-11-25 14:36:20 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-11-25 14:36:20 +0000
commitc3649a2def02c41d837ae1f79dda729ccb91e677 (patch)
treebea46dff212fdef977fe9094a70a939e8cc21885 /src/include/capabilities.h
downloadtrousers-upstream.tar.gz
Imported Upstream version 0.3.9upstream/0.3.9upstream
Diffstat (limited to 'src/include/capabilities.h')
-rw-r--r--src/include/capabilities.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/include/capabilities.h b/src/include/capabilities.h
new file mode 100644
index 0000000..1482956
--- /dev/null
+++ b/src/include/capabilities.h
@@ -0,0 +1,63 @@
+
+/*
+ * Licensed Materials - Property of IBM
+ *
+ * trousers - An open source TCG Software Stack
+ *
+ * (C) Copyright International Business Machines Corp. 2004-2007
+ *
+ */
+
+#ifndef _CAPABILITIES_H_
+#define _CAPABILITIES_H_
+
+/* This header has all of the software capabilities that are returned either via
+ * Tspi_Context_GetCapability or TCS_GetCapability.
+ */
+
+/* TSP */
+/* BOOL */
+#define INTERNAL_CAP_TSP_ALG_RSA TRUE
+#define INTERNAL_CAP_TSP_ALG_SHA TRUE
+#define INTERNAL_CAP_TSP_ALG_3DES FALSE
+#define INTERNAL_CAP_TSP_ALG_DES FALSE
+#define INTERNAL_CAP_TSP_ALG_HMAC TRUE
+#define INTERNAL_CAP_TSP_ALG_AES TRUE
+#define INTERNAL_CAP_TSP_PERSSTORAGE TRUE
+
+/* UINT32 */
+#define INTERNAL_CAP_TSP_ALG_DEFAULT TSS_ALG_RSA
+#define INTERNAL_CAP_TSP_ALG_DEFAULT_SIZE TSS_KEY_SIZEVAL_2048BIT
+
+/* 1 indicates byte-stream return values, 0 indicates ASN.1 encoded return values */
+#define INTERNAL_CAP_TSP_RETURNVALUE_INFO 1
+
+/* 0 is unknown platform version/type. Currently the spec is too vague on possible values for this
+ * information to define anything here. */
+#define INTERNAL_CAP_TSP_PLATFORM_VERSION 0
+#define INTERNAL_CAP_TSP_PLATFORM_TYPE 0
+
+/* TCS */
+/* BOOL */
+#define INTERNAL_CAP_TCS_ALG_RSA FALSE
+#define INTERNAL_CAP_TCS_ALG_AES FALSE
+#define INTERNAL_CAP_TCS_ALG_3DES FALSE
+#define INTERNAL_CAP_TCS_ALG_DES FALSE
+#define INTERNAL_CAP_TCS_ALG_SHA TRUE
+#define INTERNAL_CAP_TCS_ALG_HMAC FALSE
+#define INTERNAL_CAP_TCS_PERSSTORAGE TRUE
+#define INTERNAL_CAP_TCS_CACHING_KEYCACHE FALSE
+#define INTERNAL_CAP_TCS_CACHING_AUTHCACHE TRUE
+
+/* UINT32 */
+#define INTERNAL_CAP_TCS_ALG_DEFAULT TSS_ALG_RSA
+#define INTERNAL_CAP_TCS_ALG_DEFAULT_SIZE TSS_KEY_SIZEVAL_2048BIT
+
+/* Common between both TSP and TCS */
+#define INTERNAL_CAP_VERSION { 1, 2, TSS_VER_MAJOR, TSS_VER_MINOR }
+
+#define INTERNAL_CAP_MANUFACTURER_ID 0x49424D00
+#define INTERNAL_CAP_MANUFACTURER_STR { 'I', 0, 'B', 0, 'M', 0, 0, 0 }
+#define INTERNAL_CAP_MANUFACTURER_STR_LEN 8
+
+#endif