created empty imc_attestation and imv_attestation plugin hulls
[strongswan.git] / src / libimcv / tcg / tcg_attr.c
1 /*
2 * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 */
14
15 #include "tcg_attr.h"
16
17 ENUM_BEGIN(tcg_attr_names, TCG_PTS_REQ_FUNCT_COMP_EVID,
18 TCG_PTS_REQ_FUNCT_COMP_EVID,
19 "Request Functional Component Evidence");
20 ENUM_NEXT(tcg_attr_names, TCG_PTS_GEN_ATTEST_EVID,
21 TCG_PTS_GEN_ATTEST_EVID,
22 TCG_PTS_REQ_FUNCT_COMP_EVID,
23 "Generate Attestation Evidence");
24 ENUM_NEXT(tcg_attr_names, TCG_PTS_SIMPLE_COMP_EVID,
25 TCG_PTS_SIMPLE_COMP_EVID,
26 TCG_PTS_GEN_ATTEST_EVID,
27 "Simple Component Evidence");
28 ENUM_NEXT(tcg_attr_names, TCG_PTS_SIMPLE_EVID_FINAL,
29 TCG_PTS_SIMPLE_EVID_FINAL,
30 TCG_PTS_SIMPLE_COMP_EVID,
31 "Simple Evidence Final");
32 ENUM_NEXT(tcg_attr_names, TCG_PTS_VERIFICATION_RESULT,
33 TCG_PTS_VERIFICATION_RESULT,
34 TCG_PTS_SIMPLE_EVID_FINAL,
35 "Verification Result");
36 ENUM_NEXT(tcg_attr_names, TCG_PTS_INTEG_REPORT,
37 TCG_PTS_INTEG_REPORT,
38 TCG_PTS_VERIFICATION_RESULT,
39 "Integrity Report");
40 ENUM_NEXT(tcg_attr_names, TCG_PTS_REQ_FILE_META,
41 TCG_PTS_REQ_FILE_META,
42 TCG_PTS_INTEG_REPORT,
43 "Request File Metadata");
44 ENUM_NEXT(tcg_attr_names, TCG_PTS_WIN_FILE_META,
45 TCG_PTS_WIN_FILE_META,
46 TCG_PTS_REQ_FILE_META,
47 "Windows-Style File Metadata");
48 ENUM_NEXT(tcg_attr_names, TCG_PTS_UNIX_FILE_META,
49 TCG_PTS_UNIX_FILE_META,
50 TCG_PTS_WIN_FILE_META,
51 "Unix-Style File Metadata");
52 ENUM_NEXT(tcg_attr_names, TCG_PTS_REQ_REGISTRY_VALUE,
53 TCG_PTS_REQ_REGISTRY_VALUE,
54 TCG_PTS_UNIX_FILE_META,
55 "Request Registry Value");
56 ENUM_NEXT(tcg_attr_names, TCG_PTS_REGISTRY_VALUE,
57 TCG_PTS_REGISTRY_VALUE,
58 TCG_PTS_REQ_REGISTRY_VALUE,
59 "Registry Value");
60 ENUM_NEXT(tcg_attr_names, TCG_PTS_REQ_FILE_MEAS,
61 TCG_PTS_REQ_FILE_MEAS,
62 TCG_PTS_REGISTRY_VALUE,
63 "Request File Measurement");
64 ENUM_NEXT(tcg_attr_names, TCG_PTS_FILE_MEAS,
65 TCG_PTS_FILE_MEAS,
66 TCG_PTS_REQ_FILE_MEAS,
67 "File Measurement");
68 ENUM_NEXT(tcg_attr_names, TCG_PTS_REQ_INTEG_MEAS_LOG,
69 TCG_PTS_REQ_INTEG_MEAS_LOG,
70 TCG_PTS_FILE_MEAS,
71 "Request Integrity Measurement Log");
72 ENUM_NEXT(tcg_attr_names, TCG_PTS_INTEG_MEAS_LOG,
73 TCG_PTS_INTEG_MEAS_LOG,
74 TCG_PTS_REQ_INTEG_MEAS_LOG,
75 "Integrity Measurement Log");
76 ENUM_NEXT(tcg_attr_names, TCG_PTS_REQ_PROTO_CAPS,
77 TCG_PTS_REQ_PROTO_CAPS,
78 TCG_PTS_INTEG_MEAS_LOG,
79 "Request PTS Protocol Capabilities");
80 ENUM_NEXT(tcg_attr_names, TCG_PTS_PROTO_CAPS,
81 TCG_PTS_PROTO_CAPS,
82 TCG_PTS_REQ_PROTO_CAPS,
83 "PTS Protocol Capabilities");
84 ENUM_NEXT(tcg_attr_names, TCG_PTS_DH_NONCE_PARAMS_REQ,
85 TCG_PTS_DH_NONCE_PARAMS_REQ,
86 TCG_PTS_PROTO_CAPS,
87 "DH Nonce Parameters Request");
88 ENUM_NEXT(tcg_attr_names, TCG_PTS_DH_NONCE_PARAMS_RESP,
89 TCG_PTS_DH_NONCE_PARAMS_RESP,
90 TCG_PTS_DH_NONCE_PARAMS_REQ,
91 "DH Nonce Parameters Response");
92 ENUM_NEXT(tcg_attr_names, TCG_PTS_DH_NONCE_FINISH,
93 TCG_PTS_DH_NONCE_FINISH,
94 TCG_PTS_DH_NONCE_PARAMS_RESP,
95 "DH Nonce Finish");
96 ENUM_NEXT(tcg_attr_names, TCG_PTS_MEAS_ALGO,
97 TCG_PTS_MEAS_ALGO,
98 TCG_PTS_DH_NONCE_FINISH,
99 "PTS Measurement Algorithm Request");
100 ENUM_NEXT(tcg_attr_names, TCG_PTS_MEAS_ALGO_SELECTION,
101 TCG_PTS_MEAS_ALGO_SELECTION,
102 TCG_PTS_MEAS_ALGO,
103 "PTS Measurement Algorithm");
104 ENUM_NEXT(tcg_attr_names, TCG_PTS_GET_TPM_VERSION_INFO,
105 TCG_PTS_GET_TPM_VERSION_INFO,
106 TCG_PTS_MEAS_ALGO_SELECTION,
107 "Get TPM Version Information");
108 ENUM_NEXT(tcg_attr_names, TCG_PTS_TPM_VERSION_INFO,
109 TCG_PTS_TPM_VERSION_INFO,
110 TCG_PTS_GET_TPM_VERSION_INFO,
111 "TPM Version Information");
112 ENUM_NEXT(tcg_attr_names, TCG_PTS_REQ_TEMPL_REF_MANI_SET_META,
113 TCG_PTS_REQ_TEMPL_REF_MANI_SET_META,
114 TCG_PTS_TPM_VERSION_INFO,
115 "Request Template Reference Manifest Set Metadata");
116 ENUM_NEXT(tcg_attr_names, TCG_PTS_TEMPL_REF_MANI_SET_META,
117 TCG_PTS_TEMPL_REF_MANI_SET_META,
118 TCG_PTS_REQ_TEMPL_REF_MANI_SET_META,
119 "Template Reference Manifest Set Metadata");
120 ENUM_NEXT(tcg_attr_names, TCG_PTS_UPDATE_TEMPL_REF_MANI,
121 TCG_PTS_UPDATE_TEMPL_REF_MANI,
122 TCG_PTS_TEMPL_REF_MANI_SET_META,
123 "Update Template Reference Manifest");
124 ENUM_NEXT(tcg_attr_names, TCG_PTS_GET_AIK,
125 TCG_PTS_GET_AIK,
126 TCG_PTS_UPDATE_TEMPL_REF_MANI,
127 "Get Attestation Identity Key");
128 ENUM_NEXT(tcg_attr_names, TCG_PTS_AIK,
129 TCG_PTS_AIK,
130 TCG_PTS_GET_AIK,
131 "Attestation Identity Key");
132 ENUM_END(tcg_attr_names, TCG_PTS_AIK);