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