Home | History | Annotate | Line # | Download | only in include
      1 
      2 /*
      3  * Licensed Materials - Property of IBM
      4  *
      5  * trousers - An open source TCG Software Stack
      6  *
      7  * (C) Copyright International Business Machines Corp. 2004-2007
      8  *
      9  */
     10 
     11 #ifndef _CAPABILITIES_H_
     12 #define _CAPABILITIES_H_
     13 
     14 /* This header has all of the software capabilities that are returned either via
     15  * Tspi_Context_GetCapability or TCS_GetCapability.
     16  */
     17 
     18 /* TSP */
     19 /* BOOL */
     20 #define INTERNAL_CAP_TSP_ALG_RSA		TRUE
     21 #define INTERNAL_CAP_TSP_ALG_SHA		TRUE
     22 #define INTERNAL_CAP_TSP_ALG_3DES		FALSE
     23 #define INTERNAL_CAP_TSP_ALG_DES		FALSE
     24 #define INTERNAL_CAP_TSP_ALG_HMAC		TRUE
     25 #define INTERNAL_CAP_TSP_ALG_AES		TRUE
     26 #define INTERNAL_CAP_TSP_PERSSTORAGE		TRUE
     27 
     28 /* UINT32 */
     29 #define INTERNAL_CAP_TSP_ALG_DEFAULT		TSS_ALG_RSA
     30 #define INTERNAL_CAP_TSP_ALG_DEFAULT_SIZE	TSS_KEY_SIZEVAL_2048BIT
     31 
     32 /* 1 indicates byte-stream return values, 0 indicates ASN.1 encoded return values */
     33 #define INTERNAL_CAP_TSP_RETURNVALUE_INFO	1
     34 
     35 /* 0 is unknown platform version/type. Currently the spec is too vague on possible values for this
     36  * information to define anything here. */
     37 #define INTERNAL_CAP_TSP_PLATFORM_VERSION	0
     38 #define INTERNAL_CAP_TSP_PLATFORM_TYPE		0
     39 
     40 /* TCS */
     41 /* BOOL */
     42 #define INTERNAL_CAP_TCS_ALG_RSA		FALSE
     43 #define INTERNAL_CAP_TCS_ALG_AES		FALSE
     44 #define INTERNAL_CAP_TCS_ALG_3DES		FALSE
     45 #define INTERNAL_CAP_TCS_ALG_DES		FALSE
     46 #define INTERNAL_CAP_TCS_ALG_SHA		TRUE
     47 #define INTERNAL_CAP_TCS_ALG_HMAC		FALSE
     48 #define INTERNAL_CAP_TCS_PERSSTORAGE		TRUE
     49 #define INTERNAL_CAP_TCS_CACHING_KEYCACHE	FALSE
     50 #define INTERNAL_CAP_TCS_CACHING_AUTHCACHE	TRUE
     51 
     52 /* UINT32 */
     53 #define INTERNAL_CAP_TCS_ALG_DEFAULT		TSS_ALG_RSA
     54 #define INTERNAL_CAP_TCS_ALG_DEFAULT_SIZE	TSS_KEY_SIZEVAL_2048BIT
     55 
     56 /* Common between both TSP and TCS */
     57 #define INTERNAL_CAP_VERSION			{ 1, 2, TSS_VER_MAJOR, TSS_VER_MINOR }
     58 
     59 #define INTERNAL_CAP_MANUFACTURER_ID		0x49424D00
     60 #define INTERNAL_CAP_MANUFACTURER_STR		{ 'I', 0, 'B', 0, 'M', 0, 0, 0 }
     61 #define INTERNAL_CAP_MANUFACTURER_STR_LEN	8
     62 
     63 #endif
     64