1use std::collections::HashMap;
3
4use kmip_ttlv::types::TtlvTag;
5
6pub fn make_kmip_tag_map() -> HashMap<TtlvTag, &'static str> {
7 vec![
8 (b"\x42\x00\x01".into(), "Activation Date"),
10 (b"\x42\x00\x02".into(), "Application Data"),
11 (b"\x42\x00\x03".into(), "Application Namespace"),
12 (b"\x42\x00\x04".into(), "Application Specific Information"),
13 (b"\x42\x00\x05".into(), "Archive Date"),
14 (b"\x42\x00\x06".into(), "Asynchronous Correlation Value"),
15 (b"\x42\x00\x07".into(), "Asynchronous Indicator"),
16 (b"\x42\x00\x08".into(), "Attribute"),
17 (b"\x42\x00\x09".into(), "Attribute Index"),
18 (b"\x42\x00\x0A".into(), "Attribute Name"),
19 (b"\x42\x00\x0B".into(), "Attribute Value"),
20 (b"\x42\x00\x0C".into(), "Authentication"),
21 (b"\x42\x00\x0D".into(), "Batch Count"),
22 (b"\x42\x00\x0E".into(), "Batch Error Continuation Option"),
23 (b"\x42\x00\x0F".into(), "Batch Item"),
24 (b"\x42\x00\x10".into(), "Batch Order Option"),
25 (b"\x42\x00\x11".into(), "Block Cipher Mode"),
26 (b"\x42\x00\x12".into(), "Cancellation Result"),
27 (b"\x42\x00\x13".into(), "Certificate"),
28 (b"\x42\x00\x14".into(), "Certificate Identifier"),
29 (b"\x42\x00\x15".into(), "Certificate Issuer"),
30 (b"\x42\x00\x16".into(), "Certificate Issuer Alternative Name"),
31 (b"\x42\x00\x17".into(), "Certificate Issuer Distinguished Name"),
32 (b"\x42\x00\x18".into(), "Certificate Request"),
33 (b"\x42\x00\x19".into(), "Certificate Request Type"),
34 (b"\x42\x00\x1A".into(), "Certificate Subject"),
35 (b"\x42\x00\x1B".into(), "Certificate Subject Alternative Name"),
36 (b"\x42\x00\x1C".into(), "Certificate Subject Distinguished Name"),
37 (b"\x42\x00\x1D".into(), "Certificate Type"),
38 (b"\x42\x00\x1E".into(), "Certificate Value"),
39 (b"\x42\x00\x1F".into(), "Common Template-Attribute"),
40 (b"\x42\x00\x20".into(), "Compromise Date"),
41 (b"\x42\x00\x21".into(), "Compromise Occurrence Date"),
42 (b"\x42\x00\x22".into(), "Contact Information"),
43 (b"\x42\x00\x23".into(), "Credential"),
44 (b"\x42\x00\x24".into(), "Credential Type"),
45 (b"\x42\x00\x25".into(), "Credential Value"),
46 (b"\x42\x00\x26".into(), "Criticality Indicator"),
47 (b"\x42\x00\x27".into(), "CRT Coefficient"),
48 (b"\x42\x00\x28".into(), "Cryptographic Algorithm"),
49 (b"\x42\x00\x29".into(), "Cryptographic Domain Parameters"),
50 (b"\x42\x00\x2A".into(), "Cryptographic Length"),
51 (b"\x42\x00\x2B".into(), "Cryptographic Parameters"),
52 (b"\x42\x00\x2C".into(), "Cryptographic Usage Mask"),
53 (b"\x42\x00\x2D".into(), "Custom Attribute"),
54 (b"\x42\x00\x2E".into(), "D"),
55 (b"\x42\x00\x2F".into(), "Deactivation Date"),
56 (b"\x42\x00\x30".into(), "Derivation Data"),
57 (b"\x42\x00\x31".into(), "Derivation Method"),
58 (b"\x42\x00\x32".into(), "Derivation Parameters"),
59 (b"\x42\x00\x33".into(), "Destroy Date"),
60 (b"\x42\x00\x34".into(), "Digest"),
61 (b"\x42\x00\x35".into(), "Digest Value"),
62 (b"\x42\x00\x36".into(), "Encryption Key Information"),
63 (b"\x42\x00\x37".into(), "G"),
64 (b"\x42\x00\x38".into(), "Hashing Algorithm"),
65 (b"\x42\x00\x39".into(), "Initial Date"),
66 (b"\x42\x00\x3A".into(), "Initialization Vector"),
67 (b"\x42\x00\x3B".into(), "Issuer"),
68 (b"\x42\x00\x3C".into(), "Iteration Count"),
69 (b"\x42\x00\x3D".into(), "IV/Counter/Nonce"),
70 (b"\x42\x00\x3E".into(), "J"),
71 (b"\x42\x00\x3F".into(), "Key"),
72 (b"\x42\x00\x40".into(), "Key Block"),
73 (b"\x42\x00\x41".into(), "Key Compression Type"),
74 (b"\x42\x00\x42".into(), "Key Format Type"),
75 (b"\x42\x00\x43".into(), "Key Material"),
76 (b"\x42\x00\x44".into(), "Key Part Identifier"),
77 (b"\x42\x00\x45".into(), "Key Value"),
78 (b"\x42\x00\x46".into(), "Key Wrapping Data"),
79 (b"\x42\x00\x47".into(), "Key Wrapping Specification"),
80 (b"\x42\x00\x48".into(), "Last Change Date"),
81 (b"\x42\x00\x49".into(), "Lease Time"),
82 (b"\x42\x00\x4A".into(), "Link"),
83 (b"\x42\x00\x4B".into(), "Link Type"),
84 (b"\x42\x00\x4C".into(), "Linked Object Identifier"),
85 (b"\x42\x00\x4D".into(), "MAC/Signature"),
86 (b"\x42\x00\x4E".into(), "MAC/Signature Key Information"),
87 (b"\x42\x00\x4F".into(), "Maximum Items"),
88 (b"\x42\x00\x50".into(), "Maximum Response Size"),
89 (b"\x42\x00\x51".into(), "Message Extension"),
90 (b"\x42\x00\x52".into(), "Modulus"),
91 (b"\x42\x00\x53".into(), "Name"),
92 (b"\x42\x00\x54".into(), "Name Type"),
93 (b"\x42\x00\x55".into(), "Name Value"),
94 (b"\x42\x00\x56".into(), "Object Group"),
95 (b"\x42\x00\x57".into(), "Object Type"),
96 (b"\x42\x00\x58".into(), "Offset"),
97 (b"\x42\x00\x59".into(), "Opaque Data Type"),
98 (b"\x42\x00\x5A".into(), "Opaque Data Value"),
99 (b"\x42\x00\x5B".into(), "Opaque Object"),
100 (b"\x42\x00\x5C".into(), "Operation"),
101 (b"\x42\x00\x5D".into(), "Operation Policy Name"),
102 (b"\x42\x00\x5E".into(), "P"),
103 (b"\x42\x00\x5F".into(), "Padding Method"),
104 (b"\x42\x00\x60".into(), "Prime Exponent P"),
105 (b"\x42\x00\x61".into(), "Prime Exponent Q"),
106 (b"\x42\x00\x62".into(), "Prime Field Size"),
107 (b"\x42\x00\x63".into(), "Private Exponent"),
108 (b"\x42\x00\x64".into(), "Private Key"),
109 (b"\x42\x00\x65".into(), "Private Key Template-Attribute"),
110 (b"\x42\x00\x66".into(), "Private Key Unique Identifier"),
111 (b"\x42\x00\x67".into(), "Process Start Date"),
112 (b"\x42\x00\x68".into(), "Protect Stop Date"),
113 (b"\x42\x00\x69".into(), "Protocol Version"),
114 (b"\x42\x00\x6A".into(), "Protocol Version Major"),
115 (b"\x42\x00\x6B".into(), "Protocol Version Minor"),
116 (b"\x42\x00\x6C".into(), "Public Exponent"),
117 (b"\x42\x00\x6D".into(), "Public Key"),
118 (b"\x42\x00\x6E".into(), "Public Key Template-Attribute"),
119 (b"\x42\x00\x6F".into(), "Public Key Unique Identifier"),
120 (b"\x42\x00\x70".into(), "Put Function"),
121 (b"\x42\x00\x71".into(), "Q"),
122 (b"\x42\x00\x72".into(), "Q String"),
123 (b"\x42\x00\x73".into(), "Qlength"),
124 (b"\x42\x00\x74".into(), "Query Function"),
125 (b"\x42\x00\x75".into(), "Recommended Curve"),
126 (b"\x42\x00\x76".into(), "Replaced Unique Identifier"),
127 (b"\x42\x00\x77".into(), "Request Header"),
128 (b"\x42\x00\x78".into(), "Request Message"),
129 (b"\x42\x00\x79".into(), "Request Payload"),
130 (b"\x42\x00\x7A".into(), "Response Header"),
131 (b"\x42\x00\x7B".into(), "Response Message"),
132 (b"\x42\x00\x7C".into(), "Response Payload"),
133 (b"\x42\x00\x7D".into(), "Result Message"),
134 (b"\x42\x00\x7E".into(), "Result Reason"),
135 (b"\x42\x00\x7F".into(), "Result Status"),
136 (b"\x42\x00\x80".into(), "Revocation Message"),
137 (b"\x42\x00\x81".into(), "Revocation Reason"),
138 (b"\x42\x00\x82".into(), "Revocation Reason Code"),
139 (b"\x42\x00\x83".into(), "Key Role Type"),
140 (b"\x42\x00\x84".into(), "Salt"),
141 (b"\x42\x00\x85".into(), "Secret Data"),
142 (b"\x42\x00\x86".into(), "Secret Data Type"),
143 (b"\x42\x00\x87".into(), "Serial Number"),
144 (b"\x42\x00\x88".into(), "Server Information"),
145 (b"\x42\x00\x89".into(), "Split Key"),
146 (b"\x42\x00\x8A".into(), "Split Key Method"),
147 (b"\x42\x00\x8B".into(), "Split Key Parts"),
148 (b"\x42\x00\x8C".into(), "Split Key Threshold"),
149 (b"\x42\x00\x8D".into(), "State"),
150 (b"\x42\x00\x8E".into(), "Storage Status Mask"),
151 (b"\x42\x00\x8F".into(), "Symmetric Key"),
152 (b"\x42\x00\x90".into(), "Template"),
153 (b"\x42\x00\x91".into(), "Template-Attribute"),
154 (b"\x42\x00\x92".into(), "Time Stamp"),
155 (b"\x42\x00\x93".into(), "Unique Batch Item ID"),
156 (b"\x42\x00\x94".into(), "Unique Identifier"),
157 (b"\x42\x00\x95".into(), "Usage Limits"),
158 (b"\x42\x00\x96".into(), "Usage Limits Count"),
159 (b"\x42\x00\x97".into(), "Usage Limits Total"),
160 (b"\x42\x00\x98".into(), "Usage Limits Unit"),
161 (b"\x42\x00\x99".into(), "Username"),
162 (b"\x42\x00\x9A".into(), "Validity Date"),
163 (b"\x42\x00\x9B".into(), "Validity Indicator"),
164 (b"\x42\x00\x9C".into(), "Vendor Extension"),
165 (b"\x42\x00\x9D".into(), "Vendor Identification"),
166 (b"\x42\x00\x9E".into(), "Wrapping Method"),
167 (b"\x42\x00\x9F".into(), "X"),
168 (b"\x42\x00\xA0".into(), "Y"),
169 (b"\x42\x00\xA1".into(), "Password"),
170 (b"\x42\x00\xA2".into(), "Device Identifier"),
172 (b"\x42\x00\xA3".into(), "Encoding Option"),
173 (b"\x42\x00\xA4".into(), "Extension Information"),
174 (b"\x42\x00\xA5".into(), "Extension Name"),
175 (b"\x42\x00\xA6".into(), "Extension Tag"),
176 (b"\x42\x00\xA7".into(), "Extension Type"),
177 (b"\x42\x00\xA8".into(), "Fresh"),
178 (b"\x42\x00\xA9".into(), "Machine Identifier"),
179 (b"\x42\x00\xAA".into(), "Media Identifier"),
180 (b"\x42\x00\xAB".into(), "Network Identifier"),
181 (b"\x42\x00\xAC".into(), "Object Group Member"),
182 (b"\x42\x00\xAD".into(), "Certificate Length"),
183 (b"\x42\x00\xAE".into(), "Digital Signature Algorithm"),
184 (b"\x42\x00\xAF".into(), "Certificate Serial Number"),
185 (b"\x42\x00\xB0".into(), "Device Serial Number"),
186 (b"\x42\x00\xB1".into(), "Issuer Alternative Name"),
187 (b"\x42\x00\xB2".into(), "Issuer Distinguished Name"),
188 (b"\x42\x00\xB3".into(), "Subject Alternative Name"),
189 (b"\x42\x00\xB4".into(), "Subject Distinguished Name"),
190 (b"\x42\x00\xB5".into(), "X.509 Certificate Identifier"),
191 (b"\x42\x00\xB6".into(), "X.509 Certificate Issuer"),
192 (b"\x42\x00\xB7".into(), "X.509 Certificate Subject"),
193 (b"\x42\x00\xB8".into(), "Key Value Location"),
195 (b"\x42\x00\xB9".into(), "Key Value Location Value"),
196 (b"\x42\x00\xBA".into(), "Key Value Location Type"),
197 (b"\x42\x00\xBB".into(), "Key Value Present"),
198 (b"\x42\x00\xBC".into(), "Original Creation Date"),
199 (b"\x42\x00\xBD".into(), "PGP Key"),
200 (b"\x42\x00\xBE".into(), "PGP Key Version"),
201 (b"\x42\x00\xBF".into(), "Alternative Name"),
202 (b"\x42\x00\xC0".into(), "Alternative Name Value"),
203 (b"\x42\x00\xC1".into(), "Alternative Name Type"),
204 (b"\x42\x00\xC2".into(), "Data"),
205 (b"\x42\x00\xC3".into(), "Signature Data"),
206 (b"\x42\x00\xC4".into(), "Data Length"),
207 (b"\x42\x00\xC5".into(), "Random IV"),
208 (b"\x42\x00\xC6".into(), "MAC Data"),
209 (b"\x42\x00\xC7".into(), "Attestation Type"),
210 (b"\x42\x00\xC8".into(), "Nonce"),
211 (b"\x42\x00\xC9".into(), "Nonce ID"),
212 (b"\x42\x00\xCA".into(), "Nonce Value"),
213 (b"\x42\x00\xCB".into(), "Attestation Measurement"),
214 (b"\x42\x00\xCC".into(), "Attestation Assertion"),
215 (b"\x42\x00\xCD".into(), "IV Length"),
216 (b"\x42\x00\xCE".into(), "Tag Length"),
217 (b"\x42\x00\xCF".into(), "Fixed Field Length"),
218 (b"\x42\x00\xD0".into(), "Counter Length"),
219 (b"\x42\x00\xD1".into(), "Initial Counter Value"),
220 (b"\x42\x00\xD2".into(), "Invocation Field Length"),
221 (b"\x42\x00\xD3".into(), "Attestation Capable Indicator"),
222 (b"\x42\x00\xD4".into(), "Offset Items"),
224 (b"\x42\x00\xD5".into(), "Located Items"),
225 (b"\x42\x00\xD6".into(), "Correlation Value"),
226 (b"\x42\x00\xD7".into(), "Init Indicator"),
227 (b"\x42\x00\xD8".into(), "Final Indicator"),
228 (b"\x42\x00\xD9".into(), "RNG Parameters"),
229 (b"\x42\x00\xDA".into(), "RNG Algorithm"),
230 (b"\x42\x00\xDB".into(), "DRBG Algorithm"),
231 (b"\x42\x00\xDC".into(), "FIPS186 Variation"),
232 (b"\x42\x00\xDD".into(), "Prediction Resistance"),
233 (b"\x42\x00\xDE".into(), "Random Number Generator"),
234 (b"\x42\x00\xDF".into(), "Validation Information"),
235 (b"\x42\x00\xE0".into(), "Validation Authority Type"),
236 (b"\x42\x00\xE1".into(), "Validation Authority Country"),
237 (b"\x42\x00\xE2".into(), "Validation Authority URI"),
238 (b"\x42\x00\xE3".into(), "Validation Version Major"),
239 (b"\x42\x00\xE4".into(), "Validation Version Minor"),
240 (b"\x42\x00\xE5".into(), "Validation Type"),
241 (b"\x42\x00\xE6".into(), "Validation Level"),
242 (b"\x42\x00\xE7".into(), "Validation Certificate Identifier"),
243 (b"\x42\x00\xE8".into(), "Validation Certificate URI"),
244 (b"\x42\x00\xE9".into(), "Validation Vendor URI"),
245 (b"\x42\x00\xEA".into(), "Validation Profile"),
246 (b"\x42\x00\xEB".into(), "Profile Information"),
247 (b"\x42\x00\xEC".into(), "Profile Name"),
248 (b"\x42\x00\xED".into(), "Server URI"),
249 (b"\x42\x00\xEE".into(), "Server Port"),
250 (b"\x42\x00\xEF".into(), "Streaming Capability"),
251 (b"\x42\x00\xF0".into(), "Asynchronous Capability"),
252 (b"\x42\x00\xF1".into(), "Attestation Capability"),
253 (b"\x42\x00\xF2".into(), "Unwrap Mode"),
254 (b"\x42\x00\xF3".into(), "Destroy Action"),
255 (b"\x42\x00\xF4".into(), "Shredding Algorithm"),
256 (b"\x42\x00\xF5".into(), "RNG Mode"),
257 (b"\x42\x00\xF6".into(), "Client Registration Method"),
258 (b"\x42\x00\xF7".into(), "Capability Information"),
259 (b"\x42\x00\xF8".into(), "Key Wrap Type"),
261 (b"\x42\x00\xF9".into(), "Batch Undo Capability"),
262 (b"\x42\x00\xFA".into(), "Batch Continue Capability"),
263 (b"\x42\x00\xFB".into(), "PKCS#12 Friendly Name"),
264 (b"\x42\x00\xFC".into(), "Description"),
265 (b"\x42\x00\xFD".into(), "Comment"),
266 (b"\x42\x00\xFE".into(), "Authenticated Encryption Additional Data"),
267 (b"\x42\x00\xFF".into(), "Authenticated Encryption Tag"),
268 (b"\x42\x01\x00".into(), "Salt Length"),
269 (b"\x42\x01\x01".into(), "Mask Generator"),
270 (b"\x42\x01\x02".into(), "Mask Generator Hashing Algorithm"),
271 (b"\x42\x01\x03".into(), "P Source"),
272 (b"\x42\x01\x04".into(), "Trailer Field"),
273 (b"\x42\x01\x05".into(), "Client Correlation Value"),
274 (b"\x42\x01\x06".into(), "Server Correlation Value"),
275 (b"\x42\x01\x07".into(), "Digested Data"),
276 (b"\x42\x01\x08".into(), "Certificate Subject CN"),
277 (b"\x42\x01\x09".into(), "Certificate Subject O"),
278 (b"\x42\x01\x0A".into(), "Certificate Subject OU"),
279 (b"\x42\x01\x0B".into(), "Certificate Subject Email"),
280 (b"\x42\x01\x0C".into(), "Certificate Subject C"),
281 (b"\x42\x01\x0D".into(), "Certificate Subject ST"),
282 (b"\x42\x01\x0E".into(), "Certificate Subject L"),
283 (b"\x42\x01\x0F".into(), "Certificate Subject UID"),
284 (b"\x42\x01\x10".into(), "Certificate Subject Serial Number"),
285 (b"\x42\x01\x11".into(), "Certificate Subject Title"),
286 (b"\x42\x01\x12".into(), "Certificate Subject DC"),
287 (b"\x42\x01\x13".into(), "Certificate Subject DN Qualifier"),
288 (b"\x42\x01\x14".into(), "Certificate Issuer CN"),
289 (b"\x42\x01\x15".into(), "Certificate Issuer O"),
290 (b"\x42\x01\x16".into(), "Certificate Issuer OU"),
291 (b"\x42\x01\x17".into(), "Certificate Issuer Email"),
292 (b"\x42\x01\x18".into(), "Certificate Issuer C"),
293 (b"\x42\x01\x19".into(), "Certificate Issuer ST"),
294 (b"\x42\x01\x1A".into(), "Certificate Issuer L"),
295 (b"\x42\x01\x1B".into(), "Certificate Issuer UID"),
296 (b"\x42\x01\x1C".into(), "Certificate Issuer Serial Number"),
297 (b"\x42\x01\x1D".into(), "Certificate Issuer Title"),
298 (b"\x42\x01\x1E".into(), "Certificate Issuer DC"),
299 (b"\x42\x01\x1F".into(), "Certificate Issuer DN Qualifier"),
300 (b"\x42\x01\x20".into(), "Sensitive"),
301 (b"\x42\x01\x21".into(), "Always Sensitive"),
302 (b"\x42\x01\x22".into(), "Extractable"),
303 (b"\x42\x01\x23".into(), "Never Extractable"),
304 (b"\x42\x01\x24".into(), "Replace Existing"),
305 ]
306 .into_iter()
307 .collect()
308}