xref: /aosp_15_r20/external/ms-tpm-20-ref/TPMCmd/tpm/include/TpmProfile.h (revision 5c591343844d1f9da7da26467c4bf7efc8a7a413)
1*5c591343SA. Cody Schuffelen /* Microsoft Reference Implementation for TPM 2.0
2*5c591343SA. Cody Schuffelen  *
3*5c591343SA. Cody Schuffelen  *  The copyright in this software is being made available under the BSD License,
4*5c591343SA. Cody Schuffelen  *  included below. This software may be subject to other third party and
5*5c591343SA. Cody Schuffelen  *  contributor rights, including patent rights, and no such rights are granted
6*5c591343SA. Cody Schuffelen  *  under this license.
7*5c591343SA. Cody Schuffelen  *
8*5c591343SA. Cody Schuffelen  *  Copyright (c) Microsoft Corporation
9*5c591343SA. Cody Schuffelen  *
10*5c591343SA. Cody Schuffelen  *  All rights reserved.
11*5c591343SA. Cody Schuffelen  *
12*5c591343SA. Cody Schuffelen  *  BSD License
13*5c591343SA. Cody Schuffelen  *
14*5c591343SA. Cody Schuffelen  *  Redistribution and use in source and binary forms, with or without modification,
15*5c591343SA. Cody Schuffelen  *  are permitted provided that the following conditions are met:
16*5c591343SA. Cody Schuffelen  *
17*5c591343SA. Cody Schuffelen  *  Redistributions of source code must retain the above copyright notice, this list
18*5c591343SA. Cody Schuffelen  *  of conditions and the following disclaimer.
19*5c591343SA. Cody Schuffelen  *
20*5c591343SA. Cody Schuffelen  *  Redistributions in binary form must reproduce the above copyright notice, this
21*5c591343SA. Cody Schuffelen  *  list of conditions and the following disclaimer in the documentation and/or
22*5c591343SA. Cody Schuffelen  *  other materials provided with the distribution.
23*5c591343SA. Cody Schuffelen  *
24*5c591343SA. Cody Schuffelen  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS""
25*5c591343SA. Cody Schuffelen  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26*5c591343SA. Cody Schuffelen  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27*5c591343SA. Cody Schuffelen  *  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
28*5c591343SA. Cody Schuffelen  *  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29*5c591343SA. Cody Schuffelen  *  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30*5c591343SA. Cody Schuffelen  *  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31*5c591343SA. Cody Schuffelen  *  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32*5c591343SA. Cody Schuffelen  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33*5c591343SA. Cody Schuffelen  *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34*5c591343SA. Cody Schuffelen  */
35*5c591343SA. Cody Schuffelen /*(Auto-generated)
36*5c591343SA. Cody Schuffelen  *  Created by TpmStructures; Version 4.4 Mar 26, 2019
37*5c591343SA. Cody Schuffelen  *  Date: Mar  4, 2020  Time: 02:36:43PM
38*5c591343SA. Cody Schuffelen  */
39*5c591343SA. Cody Schuffelen 
40*5c591343SA. Cody Schuffelen #ifndef _TPM_PROFILE_H_
41*5c591343SA. Cody Schuffelen #define _TPM_PROFILE_H_
42*5c591343SA. Cody Schuffelen 
43*5c591343SA. Cody Schuffelen // Table 2:4 - Defines for Logic Values
44*5c591343SA. Cody Schuffelen #undef TRUE
45*5c591343SA. Cody Schuffelen #define TRUE                1
46*5c591343SA. Cody Schuffelen #undef FALSE
47*5c591343SA. Cody Schuffelen #define FALSE               0
48*5c591343SA. Cody Schuffelen #undef YES
49*5c591343SA. Cody Schuffelen #define YES                 1
50*5c591343SA. Cody Schuffelen #undef NO
51*5c591343SA. Cody Schuffelen #define NO                  0
52*5c591343SA. Cody Schuffelen #undef SET
53*5c591343SA. Cody Schuffelen #define SET                 1
54*5c591343SA. Cody Schuffelen #undef CLEAR
55*5c591343SA. Cody Schuffelen #define CLEAR               0
56*5c591343SA. Cody Schuffelen 
57*5c591343SA. Cody Schuffelen // Table 0:1 - Defines for Processor Values
58*5c591343SA. Cody Schuffelen #ifndef BIG_ENDIAN_TPM
59*5c591343SA. Cody Schuffelen #define BIG_ENDIAN_TPM              NO
60*5c591343SA. Cody Schuffelen #endif
61*5c591343SA. Cody Schuffelen #ifndef LITTLE_ENDIAN_TPM
62*5c591343SA. Cody Schuffelen #define LITTLE_ENDIAN_TPM           !BIG_ENDIAN_TPM
63*5c591343SA. Cody Schuffelen #endif
64*5c591343SA. Cody Schuffelen #ifndef MOST_SIGNIFICANT_BIT_0
65*5c591343SA. Cody Schuffelen #define MOST_SIGNIFICANT_BIT_0      NO
66*5c591343SA. Cody Schuffelen #endif
67*5c591343SA. Cody Schuffelen #ifndef LEAST_SIGNIFICANT_BIT_0
68*5c591343SA. Cody Schuffelen #define LEAST_SIGNIFICANT_BIT_0     !MOST_SIGNIFICANT_BIT_0
69*5c591343SA. Cody Schuffelen #endif
70*5c591343SA. Cody Schuffelen #ifndef AUTO_ALIGN
71*5c591343SA. Cody Schuffelen #define AUTO_ALIGN                  NO
72*5c591343SA. Cody Schuffelen #endif
73*5c591343SA. Cody Schuffelen 
74*5c591343SA. Cody Schuffelen // Table 0:4 - Defines for Implemented Curves
75*5c591343SA. Cody Schuffelen #ifndef ECC_NIST_P192
76*5c591343SA. Cody Schuffelen #define ECC_NIST_P192                   NO
77*5c591343SA. Cody Schuffelen #endif
78*5c591343SA. Cody Schuffelen #ifndef ECC_NIST_P224
79*5c591343SA. Cody Schuffelen #define ECC_NIST_P224                   NO
80*5c591343SA. Cody Schuffelen #endif
81*5c591343SA. Cody Schuffelen #ifndef ECC_NIST_P256
82*5c591343SA. Cody Schuffelen #define ECC_NIST_P256                   YES
83*5c591343SA. Cody Schuffelen #endif
84*5c591343SA. Cody Schuffelen #ifndef ECC_NIST_P384
85*5c591343SA. Cody Schuffelen #define ECC_NIST_P384                   YES
86*5c591343SA. Cody Schuffelen #endif
87*5c591343SA. Cody Schuffelen #ifndef ECC_NIST_P521
88*5c591343SA. Cody Schuffelen #define ECC_NIST_P521                   NO
89*5c591343SA. Cody Schuffelen #endif
90*5c591343SA. Cody Schuffelen #ifndef ECC_BN_P256
91*5c591343SA. Cody Schuffelen #define ECC_BN_P256                     YES
92*5c591343SA. Cody Schuffelen #endif
93*5c591343SA. Cody Schuffelen #ifndef ECC_BN_P638
94*5c591343SA. Cody Schuffelen #define ECC_BN_P638                     NO
95*5c591343SA. Cody Schuffelen #endif
96*5c591343SA. Cody Schuffelen #ifndef ECC_SM2_P256
97*5c591343SA. Cody Schuffelen #define ECC_SM2_P256                    YES
98*5c591343SA. Cody Schuffelen #endif
99*5c591343SA. Cody Schuffelen 
100*5c591343SA. Cody Schuffelen // Table 0:6 - Defines for Implemented ACT
101*5c591343SA. Cody Schuffelen #ifndef RH_ACT_0
102*5c591343SA. Cody Schuffelen #define RH_ACT_0                        YES
103*5c591343SA. Cody Schuffelen #endif
104*5c591343SA. Cody Schuffelen #ifndef RH_ACT_1
105*5c591343SA. Cody Schuffelen #define RH_ACT_1                        NO
106*5c591343SA. Cody Schuffelen #endif
107*5c591343SA. Cody Schuffelen #ifndef RH_ACT_A
108*5c591343SA. Cody Schuffelen #define RH_ACT_A                        YES
109*5c591343SA. Cody Schuffelen #endif
110*5c591343SA. Cody Schuffelen 
111*5c591343SA. Cody Schuffelen // Table 0:7 - Defines for Implementation Values
112*5c591343SA. Cody Schuffelen #ifndef FIELD_UPGRADE_IMPLEMENTED
113*5c591343SA. Cody Schuffelen #define FIELD_UPGRADE_IMPLEMENTED       NO
114*5c591343SA. Cody Schuffelen #endif
115*5c591343SA. Cody Schuffelen #ifndef HASH_LIB
116*5c591343SA. Cody Schuffelen #define HASH_LIB                        Ossl
117*5c591343SA. Cody Schuffelen #endif
118*5c591343SA. Cody Schuffelen #ifndef SYM_LIB
119*5c591343SA. Cody Schuffelen #define SYM_LIB                         Ossl
120*5c591343SA. Cody Schuffelen #endif
121*5c591343SA. Cody Schuffelen #ifndef MATH_LIB
122*5c591343SA. Cody Schuffelen #define MATH_LIB                        Ossl
123*5c591343SA. Cody Schuffelen #endif
124*5c591343SA. Cody Schuffelen #ifndef IMPLEMENTATION_PCR
125*5c591343SA. Cody Schuffelen #define IMPLEMENTATION_PCR              24
126*5c591343SA. Cody Schuffelen #endif
127*5c591343SA. Cody Schuffelen #ifndef PLATFORM_PCR
128*5c591343SA. Cody Schuffelen #define PLATFORM_PCR                    24
129*5c591343SA. Cody Schuffelen #endif
130*5c591343SA. Cody Schuffelen #ifndef DRTM_PCR
131*5c591343SA. Cody Schuffelen #define DRTM_PCR                        17
132*5c591343SA. Cody Schuffelen #endif
133*5c591343SA. Cody Schuffelen #ifndef HCRTM_PCR
134*5c591343SA. Cody Schuffelen #define HCRTM_PCR                       0
135*5c591343SA. Cody Schuffelen #endif
136*5c591343SA. Cody Schuffelen #ifndef NUM_LOCALITIES
137*5c591343SA. Cody Schuffelen #define NUM_LOCALITIES                  5
138*5c591343SA. Cody Schuffelen #endif
139*5c591343SA. Cody Schuffelen #ifndef MAX_HANDLE_NUM
140*5c591343SA. Cody Schuffelen #define MAX_HANDLE_NUM                  3
141*5c591343SA. Cody Schuffelen #endif
142*5c591343SA. Cody Schuffelen #ifndef MAX_ACTIVE_SESSIONS
143*5c591343SA. Cody Schuffelen #define MAX_ACTIVE_SESSIONS             64
144*5c591343SA. Cody Schuffelen #endif
145*5c591343SA. Cody Schuffelen #ifndef CONTEXT_SLOT
146*5c591343SA. Cody Schuffelen #define CONTEXT_SLOT                    UINT16
147*5c591343SA. Cody Schuffelen #endif
148*5c591343SA. Cody Schuffelen #ifndef MAX_LOADED_SESSIONS
149*5c591343SA. Cody Schuffelen #define MAX_LOADED_SESSIONS             3
150*5c591343SA. Cody Schuffelen #endif
151*5c591343SA. Cody Schuffelen #ifndef MAX_SESSION_NUM
152*5c591343SA. Cody Schuffelen #define MAX_SESSION_NUM                 3
153*5c591343SA. Cody Schuffelen #endif
154*5c591343SA. Cody Schuffelen #ifndef MAX_LOADED_OBJECTS
155*5c591343SA. Cody Schuffelen #define MAX_LOADED_OBJECTS              3
156*5c591343SA. Cody Schuffelen #endif
157*5c591343SA. Cody Schuffelen #ifndef MIN_EVICT_OBJECTS
158*5c591343SA. Cody Schuffelen #define MIN_EVICT_OBJECTS               2
159*5c591343SA. Cody Schuffelen #endif
160*5c591343SA. Cody Schuffelen #ifndef NUM_POLICY_PCR_GROUP
161*5c591343SA. Cody Schuffelen #define NUM_POLICY_PCR_GROUP            1
162*5c591343SA. Cody Schuffelen #endif
163*5c591343SA. Cody Schuffelen #ifndef NUM_AUTHVALUE_PCR_GROUP
164*5c591343SA. Cody Schuffelen #define NUM_AUTHVALUE_PCR_GROUP         1
165*5c591343SA. Cody Schuffelen #endif
166*5c591343SA. Cody Schuffelen #ifndef MAX_CONTEXT_SIZE
167*5c591343SA. Cody Schuffelen #define MAX_CONTEXT_SIZE                1344
168*5c591343SA. Cody Schuffelen #endif
169*5c591343SA. Cody Schuffelen #ifndef MAX_DIGEST_BUFFER
170*5c591343SA. Cody Schuffelen #define MAX_DIGEST_BUFFER               1024
171*5c591343SA. Cody Schuffelen #endif
172*5c591343SA. Cody Schuffelen #ifndef MAX_NV_INDEX_SIZE
173*5c591343SA. Cody Schuffelen #define MAX_NV_INDEX_SIZE               2048
174*5c591343SA. Cody Schuffelen #endif
175*5c591343SA. Cody Schuffelen #ifndef MAX_NV_BUFFER_SIZE
176*5c591343SA. Cody Schuffelen #define MAX_NV_BUFFER_SIZE              1024
177*5c591343SA. Cody Schuffelen #endif
178*5c591343SA. Cody Schuffelen #ifndef MAX_CAP_BUFFER
179*5c591343SA. Cody Schuffelen #define MAX_CAP_BUFFER                  1024
180*5c591343SA. Cody Schuffelen #endif
181*5c591343SA. Cody Schuffelen #ifndef NV_MEMORY_SIZE
182*5c591343SA. Cody Schuffelen #define NV_MEMORY_SIZE                  16384
183*5c591343SA. Cody Schuffelen #endif
184*5c591343SA. Cody Schuffelen #ifndef MIN_COUNTER_INDICES
185*5c591343SA. Cody Schuffelen #define MIN_COUNTER_INDICES             8
186*5c591343SA. Cody Schuffelen #endif
187*5c591343SA. Cody Schuffelen #ifndef NUM_STATIC_PCR
188*5c591343SA. Cody Schuffelen #define NUM_STATIC_PCR                  16
189*5c591343SA. Cody Schuffelen #endif
190*5c591343SA. Cody Schuffelen #ifndef MAX_ALG_LIST_SIZE
191*5c591343SA. Cody Schuffelen #define MAX_ALG_LIST_SIZE               64
192*5c591343SA. Cody Schuffelen #endif
193*5c591343SA. Cody Schuffelen #ifndef PRIMARY_SEED_SIZE
194*5c591343SA. Cody Schuffelen #define PRIMARY_SEED_SIZE               32
195*5c591343SA. Cody Schuffelen #endif
196*5c591343SA. Cody Schuffelen #ifndef CONTEXT_ENCRYPT_ALGORITHM
197*5c591343SA. Cody Schuffelen #define CONTEXT_ENCRYPT_ALGORITHM       AES
198*5c591343SA. Cody Schuffelen #endif
199*5c591343SA. Cody Schuffelen #ifndef NV_CLOCK_UPDATE_INTERVAL
200*5c591343SA. Cody Schuffelen #define NV_CLOCK_UPDATE_INTERVAL        12
201*5c591343SA. Cody Schuffelen #endif
202*5c591343SA. Cody Schuffelen #ifndef NUM_POLICY_PCR
203*5c591343SA. Cody Schuffelen #define NUM_POLICY_PCR                  1
204*5c591343SA. Cody Schuffelen #endif
205*5c591343SA. Cody Schuffelen #ifndef MAX_COMMAND_SIZE
206*5c591343SA. Cody Schuffelen #define MAX_COMMAND_SIZE                4096
207*5c591343SA. Cody Schuffelen #endif
208*5c591343SA. Cody Schuffelen #ifndef MAX_RESPONSE_SIZE
209*5c591343SA. Cody Schuffelen #define MAX_RESPONSE_SIZE               4096
210*5c591343SA. Cody Schuffelen #endif
211*5c591343SA. Cody Schuffelen #ifndef ORDERLY_BITS
212*5c591343SA. Cody Schuffelen #define ORDERLY_BITS                    8
213*5c591343SA. Cody Schuffelen #endif
214*5c591343SA. Cody Schuffelen #ifndef MAX_SYM_DATA
215*5c591343SA. Cody Schuffelen #define MAX_SYM_DATA                    128
216*5c591343SA. Cody Schuffelen #endif
217*5c591343SA. Cody Schuffelen #ifndef MAX_RNG_ENTROPY_SIZE
218*5c591343SA. Cody Schuffelen #define MAX_RNG_ENTROPY_SIZE            64
219*5c591343SA. Cody Schuffelen #endif
220*5c591343SA. Cody Schuffelen #ifndef RAM_INDEX_SPACE
221*5c591343SA. Cody Schuffelen #define RAM_INDEX_SPACE                 512
222*5c591343SA. Cody Schuffelen #endif
223*5c591343SA. Cody Schuffelen #ifndef RSA_DEFAULT_PUBLIC_EXPONENT
224*5c591343SA. Cody Schuffelen #define RSA_DEFAULT_PUBLIC_EXPONENT     0x00010001
225*5c591343SA. Cody Schuffelen #endif
226*5c591343SA. Cody Schuffelen #ifndef ENABLE_PCR_NO_INCREMENT
227*5c591343SA. Cody Schuffelen #define ENABLE_PCR_NO_INCREMENT         YES
228*5c591343SA. Cody Schuffelen #endif
229*5c591343SA. Cody Schuffelen #ifndef CRT_FORMAT_RSA
230*5c591343SA. Cody Schuffelen #define CRT_FORMAT_RSA                  YES
231*5c591343SA. Cody Schuffelen #endif
232*5c591343SA. Cody Schuffelen #ifndef VENDOR_COMMAND_COUNT
233*5c591343SA. Cody Schuffelen #define VENDOR_COMMAND_COUNT            0
234*5c591343SA. Cody Schuffelen #endif
235*5c591343SA. Cody Schuffelen #ifndef MAX_VENDOR_BUFFER_SIZE
236*5c591343SA. Cody Schuffelen #define MAX_VENDOR_BUFFER_SIZE          1024
237*5c591343SA. Cody Schuffelen #endif
238*5c591343SA. Cody Schuffelen #ifndef SIZE_OF_X509_SERIAL_NUMBER
239*5c591343SA. Cody Schuffelen #define SIZE_OF_X509_SERIAL_NUMBER      20
240*5c591343SA. Cody Schuffelen #endif
241*5c591343SA. Cody Schuffelen #ifndef PRIVATE_VENDOR_SPECIFIC_BYTES
242*5c591343SA. Cody Schuffelen #define PRIVATE_VENDOR_SPECIFIC_BYTES   RSA_PRIVATE_SIZE
243*5c591343SA. Cody Schuffelen #endif
244*5c591343SA. Cody Schuffelen 
245*5c591343SA. Cody Schuffelen // Table 0:2 - Defines for Implemented Algorithms
246*5c591343SA. Cody Schuffelen #ifndef ALG_AES
247*5c591343SA. Cody Schuffelen #define ALG_AES                         ALG_YES
248*5c591343SA. Cody Schuffelen #endif
249*5c591343SA. Cody Schuffelen #ifndef ALG_CAMELLIA
250*5c591343SA. Cody Schuffelen #define ALG_CAMELLIA                    ALG_YES
251*5c591343SA. Cody Schuffelen #endif
252*5c591343SA. Cody Schuffelen #ifndef ALG_CBC
253*5c591343SA. Cody Schuffelen #define ALG_CBC                         ALG_YES
254*5c591343SA. Cody Schuffelen #endif
255*5c591343SA. Cody Schuffelen #ifndef ALG_CFB
256*5c591343SA. Cody Schuffelen #define ALG_CFB                         ALG_YES
257*5c591343SA. Cody Schuffelen #endif
258*5c591343SA. Cody Schuffelen #ifndef ALG_CMAC
259*5c591343SA. Cody Schuffelen #define ALG_CMAC                        ALG_YES
260*5c591343SA. Cody Schuffelen #endif
261*5c591343SA. Cody Schuffelen #ifndef ALG_CTR
262*5c591343SA. Cody Schuffelen #define ALG_CTR                         ALG_YES
263*5c591343SA. Cody Schuffelen #endif
264*5c591343SA. Cody Schuffelen #ifndef ALG_ECB
265*5c591343SA. Cody Schuffelen #define ALG_ECB                         ALG_YES
266*5c591343SA. Cody Schuffelen #endif
267*5c591343SA. Cody Schuffelen #ifndef ALG_ECC
268*5c591343SA. Cody Schuffelen #define ALG_ECC                         ALG_YES
269*5c591343SA. Cody Schuffelen #endif
270*5c591343SA. Cody Schuffelen #ifndef ALG_ECDAA
271*5c591343SA. Cody Schuffelen #define ALG_ECDAA                       (ALG_YES && ALG_ECC)
272*5c591343SA. Cody Schuffelen #endif
273*5c591343SA. Cody Schuffelen #ifndef ALG_ECDH
274*5c591343SA. Cody Schuffelen #define ALG_ECDH                        (ALG_YES && ALG_ECC)
275*5c591343SA. Cody Schuffelen #endif
276*5c591343SA. Cody Schuffelen #ifndef ALG_ECDSA
277*5c591343SA. Cody Schuffelen #define ALG_ECDSA                       (ALG_YES && ALG_ECC)
278*5c591343SA. Cody Schuffelen #endif
279*5c591343SA. Cody Schuffelen #ifndef ALG_ECMQV
280*5c591343SA. Cody Schuffelen #define ALG_ECMQV                       (ALG_NO && ALG_ECC)
281*5c591343SA. Cody Schuffelen #endif
282*5c591343SA. Cody Schuffelen #ifndef ALG_ECSCHNORR
283*5c591343SA. Cody Schuffelen #define ALG_ECSCHNORR                   (ALG_YES && ALG_ECC)
284*5c591343SA. Cody Schuffelen #endif
285*5c591343SA. Cody Schuffelen #ifndef ALG_HMAC
286*5c591343SA. Cody Schuffelen #define ALG_HMAC                        ALG_YES
287*5c591343SA. Cody Schuffelen #endif
288*5c591343SA. Cody Schuffelen #ifndef ALG_KDF1_SP800_108
289*5c591343SA. Cody Schuffelen #define ALG_KDF1_SP800_108              ALG_YES
290*5c591343SA. Cody Schuffelen #endif
291*5c591343SA. Cody Schuffelen #ifndef ALG_KDF1_SP800_56A
292*5c591343SA. Cody Schuffelen #define ALG_KDF1_SP800_56A              (ALG_YES && ALG_ECC)
293*5c591343SA. Cody Schuffelen #endif
294*5c591343SA. Cody Schuffelen #ifndef ALG_KDF2
295*5c591343SA. Cody Schuffelen #define ALG_KDF2                        ALG_YES
296*5c591343SA. Cody Schuffelen #endif
297*5c591343SA. Cody Schuffelen #ifndef ALG_KEYEDHASH
298*5c591343SA. Cody Schuffelen #define ALG_KEYEDHASH                   ALG_YES
299*5c591343SA. Cody Schuffelen #endif
300*5c591343SA. Cody Schuffelen #ifndef ALG_MGF1
301*5c591343SA. Cody Schuffelen #define ALG_MGF1                        ALG_YES
302*5c591343SA. Cody Schuffelen #endif
303*5c591343SA. Cody Schuffelen #ifndef ALG_OAEP
304*5c591343SA. Cody Schuffelen #define ALG_OAEP                        (ALG_YES && ALG_RSA)
305*5c591343SA. Cody Schuffelen #endif
306*5c591343SA. Cody Schuffelen #ifndef ALG_OFB
307*5c591343SA. Cody Schuffelen #define ALG_OFB                         ALG_YES
308*5c591343SA. Cody Schuffelen #endif
309*5c591343SA. Cody Schuffelen #ifndef ALG_RSA
310*5c591343SA. Cody Schuffelen #define ALG_RSA                         ALG_YES
311*5c591343SA. Cody Schuffelen #endif
312*5c591343SA. Cody Schuffelen #ifndef ALG_RSAES
313*5c591343SA. Cody Schuffelen #define ALG_RSAES                       (ALG_YES && ALG_RSA)
314*5c591343SA. Cody Schuffelen #endif
315*5c591343SA. Cody Schuffelen #ifndef ALG_RSAPSS
316*5c591343SA. Cody Schuffelen #define ALG_RSAPSS                      (ALG_YES && ALG_RSA)
317*5c591343SA. Cody Schuffelen #endif
318*5c591343SA. Cody Schuffelen #ifndef ALG_RSASSA
319*5c591343SA. Cody Schuffelen #define ALG_RSASSA                      (ALG_YES && ALG_RSA)
320*5c591343SA. Cody Schuffelen #endif
321*5c591343SA. Cody Schuffelen #ifndef ALG_SHA
322*5c591343SA. Cody Schuffelen #define ALG_SHA                         ALG_NO      /* Not specified by vendor */
323*5c591343SA. Cody Schuffelen #endif
324*5c591343SA. Cody Schuffelen #ifndef ALG_SHA1
325*5c591343SA. Cody Schuffelen #define ALG_SHA1                        ALG_YES
326*5c591343SA. Cody Schuffelen #endif
327*5c591343SA. Cody Schuffelen #ifndef ALG_SHA256
328*5c591343SA. Cody Schuffelen #define ALG_SHA256                      ALG_YES
329*5c591343SA. Cody Schuffelen #endif
330*5c591343SA. Cody Schuffelen #ifndef ALG_SHA384
331*5c591343SA. Cody Schuffelen #define ALG_SHA384                      ALG_YES
332*5c591343SA. Cody Schuffelen #endif
333*5c591343SA. Cody Schuffelen #ifndef ALG_SHA3_256
334*5c591343SA. Cody Schuffelen #define ALG_SHA3_256                    ALG_NO      /* Not specified by vendor */
335*5c591343SA. Cody Schuffelen #endif
336*5c591343SA. Cody Schuffelen #ifndef ALG_SHA3_384
337*5c591343SA. Cody Schuffelen #define ALG_SHA3_384                    ALG_NO      /* Not specified by vendor */
338*5c591343SA. Cody Schuffelen #endif
339*5c591343SA. Cody Schuffelen #ifndef ALG_SHA3_512
340*5c591343SA. Cody Schuffelen #define ALG_SHA3_512                    ALG_NO      /* Not specified by vendor */
341*5c591343SA. Cody Schuffelen #endif
342*5c591343SA. Cody Schuffelen #ifndef ALG_SHA512
343*5c591343SA. Cody Schuffelen #define ALG_SHA512                      ALG_NO
344*5c591343SA. Cody Schuffelen #endif
345*5c591343SA. Cody Schuffelen #ifndef ALG_SM2
346*5c591343SA. Cody Schuffelen #define ALG_SM2                         (ALG_NO && ALG_ECC)
347*5c591343SA. Cody Schuffelen #endif
348*5c591343SA. Cody Schuffelen #ifndef ALG_SM3_256
349*5c591343SA. Cody Schuffelen #define ALG_SM3_256                     ALG_NO
350*5c591343SA. Cody Schuffelen #endif
351*5c591343SA. Cody Schuffelen #ifndef ALG_SM4
352*5c591343SA. Cody Schuffelen #define ALG_SM4                         ALG_NO
353*5c591343SA. Cody Schuffelen #endif
354*5c591343SA. Cody Schuffelen #ifndef ALG_SYMCIPHER
355*5c591343SA. Cody Schuffelen #define ALG_SYMCIPHER                   ALG_YES
356*5c591343SA. Cody Schuffelen #endif
357*5c591343SA. Cody Schuffelen #ifndef ALG_TDES
358*5c591343SA. Cody Schuffelen #define ALG_TDES                        ALG_NO
359*5c591343SA. Cody Schuffelen #endif
360*5c591343SA. Cody Schuffelen #ifndef ALG_XOR
361*5c591343SA. Cody Schuffelen #define ALG_XOR                         ALG_YES
362*5c591343SA. Cody Schuffelen #endif
363*5c591343SA. Cody Schuffelen 
364*5c591343SA. Cody Schuffelen // Table 1:3 - Defines for RSA Asymmetric Cipher Algorithm Constants
365*5c591343SA. Cody Schuffelen #ifndef RSA_1024
366*5c591343SA. Cody Schuffelen #define RSA_1024                    (ALG_RSA && YES)
367*5c591343SA. Cody Schuffelen #endif
368*5c591343SA. Cody Schuffelen #ifndef RSA_2048
369*5c591343SA. Cody Schuffelen #define RSA_2048                    (ALG_RSA && YES)
370*5c591343SA. Cody Schuffelen #endif
371*5c591343SA. Cody Schuffelen #ifndef RSA_3072
372*5c591343SA. Cody Schuffelen #define RSA_3072                    (ALG_RSA && NO)
373*5c591343SA. Cody Schuffelen #endif
374*5c591343SA. Cody Schuffelen #ifndef RSA_4096
375*5c591343SA. Cody Schuffelen #define RSA_4096                    (ALG_RSA && NO)
376*5c591343SA. Cody Schuffelen #endif
377*5c591343SA. Cody Schuffelen #ifndef RSA_16384
378*5c591343SA. Cody Schuffelen #define RSA_16384                   (ALG_RSA && NO)
379*5c591343SA. Cody Schuffelen #endif
380*5c591343SA. Cody Schuffelen 
381*5c591343SA. Cody Schuffelen // Table 1:21 - Defines for AES Symmetric Cipher Algorithm Constants
382*5c591343SA. Cody Schuffelen #ifndef AES_128
383*5c591343SA. Cody Schuffelen #define AES_128                     (ALG_AES && YES)
384*5c591343SA. Cody Schuffelen #endif
385*5c591343SA. Cody Schuffelen #ifndef AES_192
386*5c591343SA. Cody Schuffelen #define AES_192                     (ALG_AES && NO)
387*5c591343SA. Cody Schuffelen #endif
388*5c591343SA. Cody Schuffelen #ifndef AES_256
389*5c591343SA. Cody Schuffelen #define AES_256                     (ALG_AES && YES)
390*5c591343SA. Cody Schuffelen #endif
391*5c591343SA. Cody Schuffelen 
392*5c591343SA. Cody Schuffelen // Table 1:22 - Defines for SM4 Symmetric Cipher Algorithm Constants
393*5c591343SA. Cody Schuffelen #ifndef SM4_128
394*5c591343SA. Cody Schuffelen #define SM4_128                     (ALG_SM4 && YES)
395*5c591343SA. Cody Schuffelen #endif
396*5c591343SA. Cody Schuffelen 
397*5c591343SA. Cody Schuffelen // Table 1:23 - Defines for CAMELLIA Symmetric Cipher Algorithm Constants
398*5c591343SA. Cody Schuffelen #ifndef CAMELLIA_128
399*5c591343SA. Cody Schuffelen #define CAMELLIA_128                    (ALG_CAMELLIA && YES)
400*5c591343SA. Cody Schuffelen #endif
401*5c591343SA. Cody Schuffelen #ifndef CAMELLIA_192
402*5c591343SA. Cody Schuffelen #define CAMELLIA_192                    (ALG_CAMELLIA && NO)
403*5c591343SA. Cody Schuffelen #endif
404*5c591343SA. Cody Schuffelen #ifndef CAMELLIA_256
405*5c591343SA. Cody Schuffelen #define CAMELLIA_256                    (ALG_CAMELLIA && YES)
406*5c591343SA. Cody Schuffelen #endif
407*5c591343SA. Cody Schuffelen 
408*5c591343SA. Cody Schuffelen // Table 1:24 - Defines for TDES Symmetric Cipher Algorithm Constants
409*5c591343SA. Cody Schuffelen #ifndef TDES_128
410*5c591343SA. Cody Schuffelen #define TDES_128                    (ALG_TDES && YES)
411*5c591343SA. Cody Schuffelen #endif
412*5c591343SA. Cody Schuffelen #ifndef TDES_192
413*5c591343SA. Cody Schuffelen #define TDES_192                    (ALG_TDES && YES)
414*5c591343SA. Cody Schuffelen #endif
415*5c591343SA. Cody Schuffelen 
416*5c591343SA. Cody Schuffelen // Table 0:5 - Defines for Implemented Commands
417*5c591343SA. Cody Schuffelen #ifndef CC_ACT_SetTimeout
418*5c591343SA. Cody Schuffelen #define CC_ACT_SetTimeout                   CC_YES
419*5c591343SA. Cody Schuffelen #endif
420*5c591343SA. Cody Schuffelen #ifndef CC_AC_GetCapability
421*5c591343SA. Cody Schuffelen #define CC_AC_GetCapability                 CC_YES
422*5c591343SA. Cody Schuffelen #endif
423*5c591343SA. Cody Schuffelen #ifndef CC_AC_Send
424*5c591343SA. Cody Schuffelen #define CC_AC_Send                          CC_YES
425*5c591343SA. Cody Schuffelen #endif
426*5c591343SA. Cody Schuffelen #ifndef CC_ActivateCredential
427*5c591343SA. Cody Schuffelen #define CC_ActivateCredential               CC_YES
428*5c591343SA. Cody Schuffelen #endif
429*5c591343SA. Cody Schuffelen #ifndef CC_Certify
430*5c591343SA. Cody Schuffelen #define CC_Certify                          CC_YES
431*5c591343SA. Cody Schuffelen #endif
432*5c591343SA. Cody Schuffelen #ifndef CC_CertifyCreation
433*5c591343SA. Cody Schuffelen #define CC_CertifyCreation                  CC_YES
434*5c591343SA. Cody Schuffelen #endif
435*5c591343SA. Cody Schuffelen #ifndef CC_CertifyX509
436*5c591343SA. Cody Schuffelen #define CC_CertifyX509                      CC_YES
437*5c591343SA. Cody Schuffelen #endif
438*5c591343SA. Cody Schuffelen #ifndef CC_ChangeEPS
439*5c591343SA. Cody Schuffelen #define CC_ChangeEPS                        CC_YES
440*5c591343SA. Cody Schuffelen #endif
441*5c591343SA. Cody Schuffelen #ifndef CC_ChangePPS
442*5c591343SA. Cody Schuffelen #define CC_ChangePPS                        CC_YES
443*5c591343SA. Cody Schuffelen #endif
444*5c591343SA. Cody Schuffelen #ifndef CC_Clear
445*5c591343SA. Cody Schuffelen #define CC_Clear                            CC_YES
446*5c591343SA. Cody Schuffelen #endif
447*5c591343SA. Cody Schuffelen #ifndef CC_ClearControl
448*5c591343SA. Cody Schuffelen #define CC_ClearControl                     CC_YES
449*5c591343SA. Cody Schuffelen #endif
450*5c591343SA. Cody Schuffelen #ifndef CC_ClockRateAdjust
451*5c591343SA. Cody Schuffelen #define CC_ClockRateAdjust                  CC_YES
452*5c591343SA. Cody Schuffelen #endif
453*5c591343SA. Cody Schuffelen #ifndef CC_ClockSet
454*5c591343SA. Cody Schuffelen #define CC_ClockSet                         CC_YES
455*5c591343SA. Cody Schuffelen #endif
456*5c591343SA. Cody Schuffelen #ifndef CC_Commit
457*5c591343SA. Cody Schuffelen #define CC_Commit                           (CC_YES && ALG_ECC)
458*5c591343SA. Cody Schuffelen #endif
459*5c591343SA. Cody Schuffelen #ifndef CC_ContextLoad
460*5c591343SA. Cody Schuffelen #define CC_ContextLoad                      CC_YES
461*5c591343SA. Cody Schuffelen #endif
462*5c591343SA. Cody Schuffelen #ifndef CC_ContextSave
463*5c591343SA. Cody Schuffelen #define CC_ContextSave                      CC_YES
464*5c591343SA. Cody Schuffelen #endif
465*5c591343SA. Cody Schuffelen #ifndef CC_Create
466*5c591343SA. Cody Schuffelen #define CC_Create                           CC_YES
467*5c591343SA. Cody Schuffelen #endif
468*5c591343SA. Cody Schuffelen #ifndef CC_CreateLoaded
469*5c591343SA. Cody Schuffelen #define CC_CreateLoaded                     CC_YES
470*5c591343SA. Cody Schuffelen #endif
471*5c591343SA. Cody Schuffelen #ifndef CC_CreatePrimary
472*5c591343SA. Cody Schuffelen #define CC_CreatePrimary                    CC_YES
473*5c591343SA. Cody Schuffelen #endif
474*5c591343SA. Cody Schuffelen #ifndef CC_DictionaryAttackLockReset
475*5c591343SA. Cody Schuffelen #define CC_DictionaryAttackLockReset        CC_YES
476*5c591343SA. Cody Schuffelen #endif
477*5c591343SA. Cody Schuffelen #ifndef CC_DictionaryAttackParameters
478*5c591343SA. Cody Schuffelen #define CC_DictionaryAttackParameters       CC_YES
479*5c591343SA. Cody Schuffelen #endif
480*5c591343SA. Cody Schuffelen #ifndef CC_Duplicate
481*5c591343SA. Cody Schuffelen #define CC_Duplicate                        CC_YES
482*5c591343SA. Cody Schuffelen #endif
483*5c591343SA. Cody Schuffelen #ifndef CC_ECC_Decrypt
484*5c591343SA. Cody Schuffelen #define CC_ECC_Decrypt                      (CC_YES && ALG_ECC)
485*5c591343SA. Cody Schuffelen #endif
486*5c591343SA. Cody Schuffelen #ifndef CC_ECC_Encrypt
487*5c591343SA. Cody Schuffelen #define CC_ECC_Encrypt                      (CC_YES && ALG_ECC)
488*5c591343SA. Cody Schuffelen #endif
489*5c591343SA. Cody Schuffelen #ifndef CC_ECC_Parameters
490*5c591343SA. Cody Schuffelen #define CC_ECC_Parameters                   (CC_YES && ALG_ECC)
491*5c591343SA. Cody Schuffelen #endif
492*5c591343SA. Cody Schuffelen #ifndef CC_ECDH_KeyGen
493*5c591343SA. Cody Schuffelen #define CC_ECDH_KeyGen                      (CC_YES && ALG_ECC)
494*5c591343SA. Cody Schuffelen #endif
495*5c591343SA. Cody Schuffelen #ifndef CC_ECDH_ZGen
496*5c591343SA. Cody Schuffelen #define CC_ECDH_ZGen                        (CC_YES && ALG_ECC)
497*5c591343SA. Cody Schuffelen #endif
498*5c591343SA. Cody Schuffelen #ifndef CC_EC_Ephemeral
499*5c591343SA. Cody Schuffelen #define CC_EC_Ephemeral                     (CC_YES && ALG_ECC)
500*5c591343SA. Cody Schuffelen #endif
501*5c591343SA. Cody Schuffelen #ifndef CC_EncryptDecrypt
502*5c591343SA. Cody Schuffelen #define CC_EncryptDecrypt                   CC_YES
503*5c591343SA. Cody Schuffelen #endif
504*5c591343SA. Cody Schuffelen #ifndef CC_EncryptDecrypt2
505*5c591343SA. Cody Schuffelen #define CC_EncryptDecrypt2                  CC_YES
506*5c591343SA. Cody Schuffelen #endif
507*5c591343SA. Cody Schuffelen #ifndef CC_EventSequenceComplete
508*5c591343SA. Cody Schuffelen #define CC_EventSequenceComplete            CC_YES
509*5c591343SA. Cody Schuffelen #endif
510*5c591343SA. Cody Schuffelen #ifndef CC_EvictControl
511*5c591343SA. Cody Schuffelen #define CC_EvictControl                     CC_YES
512*5c591343SA. Cody Schuffelen #endif
513*5c591343SA. Cody Schuffelen #ifndef CC_FieldUpgradeData
514*5c591343SA. Cody Schuffelen #define CC_FieldUpgradeData                 CC_NO
515*5c591343SA. Cody Schuffelen #endif
516*5c591343SA. Cody Schuffelen #ifndef CC_FieldUpgradeStart
517*5c591343SA. Cody Schuffelen #define CC_FieldUpgradeStart                CC_NO
518*5c591343SA. Cody Schuffelen #endif
519*5c591343SA. Cody Schuffelen #ifndef CC_FirmwareRead
520*5c591343SA. Cody Schuffelen #define CC_FirmwareRead                     CC_NO
521*5c591343SA. Cody Schuffelen #endif
522*5c591343SA. Cody Schuffelen #ifndef CC_FlushContext
523*5c591343SA. Cody Schuffelen #define CC_FlushContext                     CC_YES
524*5c591343SA. Cody Schuffelen #endif
525*5c591343SA. Cody Schuffelen #ifndef CC_GetCapability
526*5c591343SA. Cody Schuffelen #define CC_GetCapability                    CC_YES
527*5c591343SA. Cody Schuffelen #endif
528*5c591343SA. Cody Schuffelen #ifndef CC_GetCommandAuditDigest
529*5c591343SA. Cody Schuffelen #define CC_GetCommandAuditDigest            CC_YES
530*5c591343SA. Cody Schuffelen #endif
531*5c591343SA. Cody Schuffelen #ifndef CC_GetRandom
532*5c591343SA. Cody Schuffelen #define CC_GetRandom                        CC_YES
533*5c591343SA. Cody Schuffelen #endif
534*5c591343SA. Cody Schuffelen #ifndef CC_GetSessionAuditDigest
535*5c591343SA. Cody Schuffelen #define CC_GetSessionAuditDigest            CC_YES
536*5c591343SA. Cody Schuffelen #endif
537*5c591343SA. Cody Schuffelen #ifndef CC_GetTestResult
538*5c591343SA. Cody Schuffelen #define CC_GetTestResult                    CC_YES
539*5c591343SA. Cody Schuffelen #endif
540*5c591343SA. Cody Schuffelen #ifndef CC_GetTime
541*5c591343SA. Cody Schuffelen #define CC_GetTime                          CC_YES
542*5c591343SA. Cody Schuffelen #endif
543*5c591343SA. Cody Schuffelen #ifndef CC_HMAC
544*5c591343SA. Cody Schuffelen #define CC_HMAC                             (CC_YES && !ALG_CMAC)
545*5c591343SA. Cody Schuffelen #endif
546*5c591343SA. Cody Schuffelen #ifndef CC_HMAC_Start
547*5c591343SA. Cody Schuffelen #define CC_HMAC_Start                       (CC_YES && !ALG_CMAC)
548*5c591343SA. Cody Schuffelen #endif
549*5c591343SA. Cody Schuffelen #ifndef CC_Hash
550*5c591343SA. Cody Schuffelen #define CC_Hash                             CC_YES
551*5c591343SA. Cody Schuffelen #endif
552*5c591343SA. Cody Schuffelen #ifndef CC_HashSequenceStart
553*5c591343SA. Cody Schuffelen #define CC_HashSequenceStart                CC_YES
554*5c591343SA. Cody Schuffelen #endif
555*5c591343SA. Cody Schuffelen #ifndef CC_HierarchyChangeAuth
556*5c591343SA. Cody Schuffelen #define CC_HierarchyChangeAuth              CC_YES
557*5c591343SA. Cody Schuffelen #endif
558*5c591343SA. Cody Schuffelen #ifndef CC_HierarchyControl
559*5c591343SA. Cody Schuffelen #define CC_HierarchyControl                 CC_YES
560*5c591343SA. Cody Schuffelen #endif
561*5c591343SA. Cody Schuffelen #ifndef CC_Import
562*5c591343SA. Cody Schuffelen #define CC_Import                           CC_YES
563*5c591343SA. Cody Schuffelen #endif
564*5c591343SA. Cody Schuffelen #ifndef CC_IncrementalSelfTest
565*5c591343SA. Cody Schuffelen #define CC_IncrementalSelfTest              CC_YES
566*5c591343SA. Cody Schuffelen #endif
567*5c591343SA. Cody Schuffelen #ifndef CC_Load
568*5c591343SA. Cody Schuffelen #define CC_Load                             CC_YES
569*5c591343SA. Cody Schuffelen #endif
570*5c591343SA. Cody Schuffelen #ifndef CC_LoadExternal
571*5c591343SA. Cody Schuffelen #define CC_LoadExternal                     CC_YES
572*5c591343SA. Cody Schuffelen #endif
573*5c591343SA. Cody Schuffelen #ifndef CC_MAC
574*5c591343SA. Cody Schuffelen #define CC_MAC                              (CC_YES && ALG_CMAC)
575*5c591343SA. Cody Schuffelen #endif
576*5c591343SA. Cody Schuffelen #ifndef CC_MAC_Start
577*5c591343SA. Cody Schuffelen #define CC_MAC_Start                        (CC_YES && ALG_CMAC)
578*5c591343SA. Cody Schuffelen #endif
579*5c591343SA. Cody Schuffelen #ifndef CC_MakeCredential
580*5c591343SA. Cody Schuffelen #define CC_MakeCredential                   CC_YES
581*5c591343SA. Cody Schuffelen #endif
582*5c591343SA. Cody Schuffelen #ifndef CC_NV_Certify
583*5c591343SA. Cody Schuffelen #define CC_NV_Certify                       CC_YES
584*5c591343SA. Cody Schuffelen #endif
585*5c591343SA. Cody Schuffelen #ifndef CC_NV_ChangeAuth
586*5c591343SA. Cody Schuffelen #define CC_NV_ChangeAuth                    CC_YES
587*5c591343SA. Cody Schuffelen #endif
588*5c591343SA. Cody Schuffelen #ifndef CC_NV_DefineSpace
589*5c591343SA. Cody Schuffelen #define CC_NV_DefineSpace                   CC_YES
590*5c591343SA. Cody Schuffelen #endif
591*5c591343SA. Cody Schuffelen #ifndef CC_NV_Extend
592*5c591343SA. Cody Schuffelen #define CC_NV_Extend                        CC_YES
593*5c591343SA. Cody Schuffelen #endif
594*5c591343SA. Cody Schuffelen #ifndef CC_NV_GlobalWriteLock
595*5c591343SA. Cody Schuffelen #define CC_NV_GlobalWriteLock               CC_YES
596*5c591343SA. Cody Schuffelen #endif
597*5c591343SA. Cody Schuffelen #ifndef CC_NV_Increment
598*5c591343SA. Cody Schuffelen #define CC_NV_Increment                     CC_YES
599*5c591343SA. Cody Schuffelen #endif
600*5c591343SA. Cody Schuffelen #ifndef CC_NV_Read
601*5c591343SA. Cody Schuffelen #define CC_NV_Read                          CC_YES
602*5c591343SA. Cody Schuffelen #endif
603*5c591343SA. Cody Schuffelen #ifndef CC_NV_ReadLock
604*5c591343SA. Cody Schuffelen #define CC_NV_ReadLock                      CC_YES
605*5c591343SA. Cody Schuffelen #endif
606*5c591343SA. Cody Schuffelen #ifndef CC_NV_ReadPublic
607*5c591343SA. Cody Schuffelen #define CC_NV_ReadPublic                    CC_YES
608*5c591343SA. Cody Schuffelen #endif
609*5c591343SA. Cody Schuffelen #ifndef CC_NV_SetBits
610*5c591343SA. Cody Schuffelen #define CC_NV_SetBits                       CC_YES
611*5c591343SA. Cody Schuffelen #endif
612*5c591343SA. Cody Schuffelen #ifndef CC_NV_UndefineSpace
613*5c591343SA. Cody Schuffelen #define CC_NV_UndefineSpace                 CC_YES
614*5c591343SA. Cody Schuffelen #endif
615*5c591343SA. Cody Schuffelen #ifndef CC_NV_UndefineSpaceSpecial
616*5c591343SA. Cody Schuffelen #define CC_NV_UndefineSpaceSpecial          CC_YES
617*5c591343SA. Cody Schuffelen #endif
618*5c591343SA. Cody Schuffelen #ifndef CC_NV_Write
619*5c591343SA. Cody Schuffelen #define CC_NV_Write                         CC_YES
620*5c591343SA. Cody Schuffelen #endif
621*5c591343SA. Cody Schuffelen #ifndef CC_NV_WriteLock
622*5c591343SA. Cody Schuffelen #define CC_NV_WriteLock                     CC_YES
623*5c591343SA. Cody Schuffelen #endif
624*5c591343SA. Cody Schuffelen #ifndef CC_ObjectChangeAuth
625*5c591343SA. Cody Schuffelen #define CC_ObjectChangeAuth                 CC_YES
626*5c591343SA. Cody Schuffelen #endif
627*5c591343SA. Cody Schuffelen #ifndef CC_PCR_Allocate
628*5c591343SA. Cody Schuffelen #define CC_PCR_Allocate                     CC_YES
629*5c591343SA. Cody Schuffelen #endif
630*5c591343SA. Cody Schuffelen #ifndef CC_PCR_Event
631*5c591343SA. Cody Schuffelen #define CC_PCR_Event                        CC_YES
632*5c591343SA. Cody Schuffelen #endif
633*5c591343SA. Cody Schuffelen #ifndef CC_PCR_Extend
634*5c591343SA. Cody Schuffelen #define CC_PCR_Extend                       CC_YES
635*5c591343SA. Cody Schuffelen #endif
636*5c591343SA. Cody Schuffelen #ifndef CC_PCR_Read
637*5c591343SA. Cody Schuffelen #define CC_PCR_Read                         CC_YES
638*5c591343SA. Cody Schuffelen #endif
639*5c591343SA. Cody Schuffelen #ifndef CC_PCR_Reset
640*5c591343SA. Cody Schuffelen #define CC_PCR_Reset                        CC_YES
641*5c591343SA. Cody Schuffelen #endif
642*5c591343SA. Cody Schuffelen #ifndef CC_PCR_SetAuthPolicy
643*5c591343SA. Cody Schuffelen #define CC_PCR_SetAuthPolicy                CC_YES
644*5c591343SA. Cody Schuffelen #endif
645*5c591343SA. Cody Schuffelen #ifndef CC_PCR_SetAuthValue
646*5c591343SA. Cody Schuffelen #define CC_PCR_SetAuthValue                 CC_YES
647*5c591343SA. Cody Schuffelen #endif
648*5c591343SA. Cody Schuffelen #ifndef CC_PP_Commands
649*5c591343SA. Cody Schuffelen #define CC_PP_Commands                      CC_YES
650*5c591343SA. Cody Schuffelen #endif
651*5c591343SA. Cody Schuffelen #ifndef CC_PolicyAuthValue
652*5c591343SA. Cody Schuffelen #define CC_PolicyAuthValue                  CC_YES
653*5c591343SA. Cody Schuffelen #endif
654*5c591343SA. Cody Schuffelen #ifndef CC_PolicyAuthorize
655*5c591343SA. Cody Schuffelen #define CC_PolicyAuthorize                  CC_YES
656*5c591343SA. Cody Schuffelen #endif
657*5c591343SA. Cody Schuffelen #ifndef CC_PolicyAuthorizeNV
658*5c591343SA. Cody Schuffelen #define CC_PolicyAuthorizeNV                CC_YES
659*5c591343SA. Cody Schuffelen #endif
660*5c591343SA. Cody Schuffelen #ifndef CC_PolicyCommandCode
661*5c591343SA. Cody Schuffelen #define CC_PolicyCommandCode                CC_YES
662*5c591343SA. Cody Schuffelen #endif
663*5c591343SA. Cody Schuffelen #ifndef CC_PolicyCounterTimer
664*5c591343SA. Cody Schuffelen #define CC_PolicyCounterTimer               CC_YES
665*5c591343SA. Cody Schuffelen #endif
666*5c591343SA. Cody Schuffelen #ifndef CC_PolicyCpHash
667*5c591343SA. Cody Schuffelen #define CC_PolicyCpHash                     CC_YES
668*5c591343SA. Cody Schuffelen #endif
669*5c591343SA. Cody Schuffelen #ifndef CC_PolicyDuplicationSelect
670*5c591343SA. Cody Schuffelen #define CC_PolicyDuplicationSelect          CC_YES
671*5c591343SA. Cody Schuffelen #endif
672*5c591343SA. Cody Schuffelen #ifndef CC_PolicyGetDigest
673*5c591343SA. Cody Schuffelen #define CC_PolicyGetDigest                  CC_YES
674*5c591343SA. Cody Schuffelen #endif
675*5c591343SA. Cody Schuffelen #ifndef CC_PolicyLocality
676*5c591343SA. Cody Schuffelen #define CC_PolicyLocality                   CC_YES
677*5c591343SA. Cody Schuffelen #endif
678*5c591343SA. Cody Schuffelen #ifndef CC_PolicyNV
679*5c591343SA. Cody Schuffelen #define CC_PolicyNV                         CC_YES
680*5c591343SA. Cody Schuffelen #endif
681*5c591343SA. Cody Schuffelen #ifndef CC_PolicyNameHash
682*5c591343SA. Cody Schuffelen #define CC_PolicyNameHash                   CC_YES
683*5c591343SA. Cody Schuffelen #endif
684*5c591343SA. Cody Schuffelen #ifndef CC_PolicyNvWritten
685*5c591343SA. Cody Schuffelen #define CC_PolicyNvWritten                  CC_YES
686*5c591343SA. Cody Schuffelen #endif
687*5c591343SA. Cody Schuffelen #ifndef CC_PolicyOR
688*5c591343SA. Cody Schuffelen #define CC_PolicyOR                         CC_YES
689*5c591343SA. Cody Schuffelen #endif
690*5c591343SA. Cody Schuffelen #ifndef CC_PolicyPCR
691*5c591343SA. Cody Schuffelen #define CC_PolicyPCR                        CC_YES
692*5c591343SA. Cody Schuffelen #endif
693*5c591343SA. Cody Schuffelen #ifndef CC_PolicyPassword
694*5c591343SA. Cody Schuffelen #define CC_PolicyPassword                   CC_YES
695*5c591343SA. Cody Schuffelen #endif
696*5c591343SA. Cody Schuffelen #ifndef CC_PolicyPhysicalPresence
697*5c591343SA. Cody Schuffelen #define CC_PolicyPhysicalPresence           CC_YES
698*5c591343SA. Cody Schuffelen #endif
699*5c591343SA. Cody Schuffelen #ifndef CC_PolicyRestart
700*5c591343SA. Cody Schuffelen #define CC_PolicyRestart                    CC_YES
701*5c591343SA. Cody Schuffelen #endif
702*5c591343SA. Cody Schuffelen #ifndef CC_PolicySecret
703*5c591343SA. Cody Schuffelen #define CC_PolicySecret                     CC_YES
704*5c591343SA. Cody Schuffelen #endif
705*5c591343SA. Cody Schuffelen #ifndef CC_PolicySigned
706*5c591343SA. Cody Schuffelen #define CC_PolicySigned                     CC_YES
707*5c591343SA. Cody Schuffelen #endif
708*5c591343SA. Cody Schuffelen #ifndef CC_PolicyTemplate
709*5c591343SA. Cody Schuffelen #define CC_PolicyTemplate                   CC_YES
710*5c591343SA. Cody Schuffelen #endif
711*5c591343SA. Cody Schuffelen #ifndef CC_PolicyTicket
712*5c591343SA. Cody Schuffelen #define CC_PolicyTicket                     CC_YES
713*5c591343SA. Cody Schuffelen #endif
714*5c591343SA. Cody Schuffelen #ifndef CC_Policy_AC_SendSelect
715*5c591343SA. Cody Schuffelen #define CC_Policy_AC_SendSelect             CC_YES
716*5c591343SA. Cody Schuffelen #endif
717*5c591343SA. Cody Schuffelen #ifndef CC_Quote
718*5c591343SA. Cody Schuffelen #define CC_Quote                            CC_YES
719*5c591343SA. Cody Schuffelen #endif
720*5c591343SA. Cody Schuffelen #ifndef CC_RSA_Decrypt
721*5c591343SA. Cody Schuffelen #define CC_RSA_Decrypt                      (CC_YES && ALG_RSA)
722*5c591343SA. Cody Schuffelen #endif
723*5c591343SA. Cody Schuffelen #ifndef CC_RSA_Encrypt
724*5c591343SA. Cody Schuffelen #define CC_RSA_Encrypt                      (CC_YES && ALG_RSA)
725*5c591343SA. Cody Schuffelen #endif
726*5c591343SA. Cody Schuffelen #ifndef CC_ReadClock
727*5c591343SA. Cody Schuffelen #define CC_ReadClock                        CC_YES
728*5c591343SA. Cody Schuffelen #endif
729*5c591343SA. Cody Schuffelen #ifndef CC_ReadPublic
730*5c591343SA. Cody Schuffelen #define CC_ReadPublic                       CC_YES
731*5c591343SA. Cody Schuffelen #endif
732*5c591343SA. Cody Schuffelen #ifndef CC_Rewrap
733*5c591343SA. Cody Schuffelen #define CC_Rewrap                           CC_YES
734*5c591343SA. Cody Schuffelen #endif
735*5c591343SA. Cody Schuffelen #ifndef CC_SelfTest
736*5c591343SA. Cody Schuffelen #define CC_SelfTest                         CC_YES
737*5c591343SA. Cody Schuffelen #endif
738*5c591343SA. Cody Schuffelen #ifndef CC_SequenceComplete
739*5c591343SA. Cody Schuffelen #define CC_SequenceComplete                 CC_YES
740*5c591343SA. Cody Schuffelen #endif
741*5c591343SA. Cody Schuffelen #ifndef CC_SequenceUpdate
742*5c591343SA. Cody Schuffelen #define CC_SequenceUpdate                   CC_YES
743*5c591343SA. Cody Schuffelen #endif
744*5c591343SA. Cody Schuffelen #ifndef CC_SetAlgorithmSet
745*5c591343SA. Cody Schuffelen #define CC_SetAlgorithmSet                  CC_YES
746*5c591343SA. Cody Schuffelen #endif
747*5c591343SA. Cody Schuffelen #ifndef CC_SetCommandCodeAuditStatus
748*5c591343SA. Cody Schuffelen #define CC_SetCommandCodeAuditStatus        CC_YES
749*5c591343SA. Cody Schuffelen #endif
750*5c591343SA. Cody Schuffelen #ifndef CC_SetPrimaryPolicy
751*5c591343SA. Cody Schuffelen #define CC_SetPrimaryPolicy                 CC_YES
752*5c591343SA. Cody Schuffelen #endif
753*5c591343SA. Cody Schuffelen #ifndef CC_Shutdown
754*5c591343SA. Cody Schuffelen #define CC_Shutdown                         CC_YES
755*5c591343SA. Cody Schuffelen #endif
756*5c591343SA. Cody Schuffelen #ifndef CC_Sign
757*5c591343SA. Cody Schuffelen #define CC_Sign                             CC_YES
758*5c591343SA. Cody Schuffelen #endif
759*5c591343SA. Cody Schuffelen #ifndef CC_StartAuthSession
760*5c591343SA. Cody Schuffelen #define CC_StartAuthSession                 CC_YES
761*5c591343SA. Cody Schuffelen #endif
762*5c591343SA. Cody Schuffelen #ifndef CC_Startup
763*5c591343SA. Cody Schuffelen #define CC_Startup                          CC_YES
764*5c591343SA. Cody Schuffelen #endif
765*5c591343SA. Cody Schuffelen #ifndef CC_StirRandom
766*5c591343SA. Cody Schuffelen #define CC_StirRandom                       CC_YES
767*5c591343SA. Cody Schuffelen #endif
768*5c591343SA. Cody Schuffelen #ifndef CC_TestParms
769*5c591343SA. Cody Schuffelen #define CC_TestParms                        CC_YES
770*5c591343SA. Cody Schuffelen #endif
771*5c591343SA. Cody Schuffelen #ifndef CC_Unseal
772*5c591343SA. Cody Schuffelen #define CC_Unseal                           CC_YES
773*5c591343SA. Cody Schuffelen #endif
774*5c591343SA. Cody Schuffelen #ifndef CC_Vendor_TCG_Test
775*5c591343SA. Cody Schuffelen #define CC_Vendor_TCG_Test                  CC_YES
776*5c591343SA. Cody Schuffelen #endif
777*5c591343SA. Cody Schuffelen #ifndef CC_VerifySignature
778*5c591343SA. Cody Schuffelen #define CC_VerifySignature                  CC_YES
779*5c591343SA. Cody Schuffelen #endif
780*5c591343SA. Cody Schuffelen #ifndef CC_ZGen_2Phase
781*5c591343SA. Cody Schuffelen #define CC_ZGen_2Phase                      (CC_YES && ALG_ECC)
782*5c591343SA. Cody Schuffelen #endif
783*5c591343SA. Cody Schuffelen 
784*5c591343SA. Cody Schuffelen 
785*5c591343SA. Cody Schuffelen #endif // _TPM_PROFILE_H_
786