/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/ |
D | NV_DefineSpace.c | 74 if(IS_ATTRIBUTE(attributes, TPMA_NV, POLICY_DELETE)) in TPM2_NV_DefineSpace() 142 if(IS_ATTRIBUTE(attributes, TPMA_NV, CLEAR_STCLEAR)) in TPM2_NV_DefineSpace() 157 if(!IS_ATTRIBUTE(attributes, TPMA_NV, NO_DA)) in TPM2_NV_DefineSpace() 163 if(IS_ATTRIBUTE(attributes, TPMA_NV, AUTHWRITE) in TPM2_NV_DefineSpace() 164 || IS_ATTRIBUTE(attributes, TPMA_NV, GLOBALLOCK) in TPM2_NV_DefineSpace() 165 || IS_ATTRIBUTE(attributes, TPMA_NV, WRITEDEFINE)) in TPM2_NV_DefineSpace() 174 if(IS_ATTRIBUTE(attributes, TPMA_NV, WRITTEN) in TPM2_NV_DefineSpace() 175 || IS_ATTRIBUTE(attributes, TPMA_NV, WRITELOCKED) in TPM2_NV_DefineSpace() 176 || IS_ATTRIBUTE(attributes, TPMA_NV, READLOCKED)) in TPM2_NV_DefineSpace() 180 if(!IS_ATTRIBUTE(attributes, TPMA_NV, OWNERREAD) in TPM2_NV_DefineSpace() [all …]
|
D | NV_spt.c | 59 if(IS_ATTRIBUTE(attributes, TPMA_NV, READLOCKED)) in NvReadAccessChecks() 68 if(!IS_ATTRIBUTE(attributes, TPMA_NV, OWNERREAD)) in NvReadAccessChecks() 74 if(!IS_ATTRIBUTE(attributes, TPMA_NV, PPREAD)) in NvReadAccessChecks() 85 if(!IS_ATTRIBUTE(attributes, TPMA_NV, WRITTEN)) in NvReadAccessChecks() 107 if(IS_ATTRIBUTE(attributes, TPMA_NV, WRITELOCKED)) in NvWriteAccessChecks() 116 if(!IS_ATTRIBUTE(attributes, TPMA_NV, OWNERWRITE)) in NvWriteAccessChecks() 122 if(!IS_ATTRIBUTE(attributes, TPMA_NV, PPWRITE)) in NvWriteAccessChecks()
|
D | NV_UndefineSpace.c | 61 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, POLICY_DELETE)) in TPM2_NV_UndefineSpace() 67 && IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, PLATFORMCREATE)) in TPM2_NV_UndefineSpace()
|
D | NV_WriteLock.c | 77 if(!IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITEDEFINE) in TPM2_NV_WriteLock() 78 && !IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITE_STCLEAR)) in TPM2_NV_WriteLock()
|
D | NV_Increment.c | 74 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITTEN)) in TPM2_NV_Increment() 92 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, ORDERLY) in TPM2_NV_Increment()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/ |
D | Object_spt.c | 373 if((!IS_ATTRIBUTE(attributes, TPMA_OBJECT, sensitiveDataOrigin)) in CreateChecks() 379 && (IS_ATTRIBUTE(attributes, TPMA_OBJECT, sensitiveDataOrigin)) in CreateChecks() 387 if(!IS_ATTRIBUTE(attributes, TPMA_OBJECT, sign) in CreateChecks() 388 && !IS_ATTRIBUTE(attributes, TPMA_OBJECT, decrypt) in CreateChecks() 389 && IS_ATTRIBUTE(attributes, TPMA_OBJECT, sensitiveDataOrigin)) in CreateChecks() 398 if(IS_ATTRIBUTE(attributes, TPMA_OBJECT, restricted)) in CreateChecks() 399 if(!IS_ATTRIBUTE(attributes, TPMA_OBJECT, sensitiveDataOrigin)) in CreateChecks() 400 if(IS_ATTRIBUTE(attributes, TPMA_OBJECT, fixedParent) in CreateChecks() 401 || IS_ATTRIBUTE(attributes, TPMA_OBJECT, fixedTPM)) in CreateChecks() 405 if(!IS_ATTRIBUTE(attributes, TPMA_OBJECT, sensitiveDataOrigin)) in CreateChecks() [all …]
|
D | Unseal.c | 60 if(IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, decrypt) in TPM2_Unseal() 61 || IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, sign) in TPM2_Unseal() 62 || IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, restricted)) in TPM2_Unseal()
|
D | LoadExternal.c | 102 if(IS_ATTRIBUTE(in->inPublic.publicArea.objectAttributes, TPMA_OBJECT, in TPM2_LoadExternal() 104 || IS_ATTRIBUTE(in->inPublic.publicArea.objectAttributes, TPMA_OBJECT, in TPM2_LoadExternal() 106 || IS_ATTRIBUTE(in->inPublic.publicArea.objectAttributes, TPMA_OBJECT, in TPM2_LoadExternal()
|
D | MakeCredential.c | 71 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, decrypt) in TPM2_MakeCredential() 72 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, in TPM2_MakeCredential()
|
D | ActivateCredential.c | 76 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, decrypt) in TPM2_ActivateCredential() 77 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, in TPM2_ActivateCredential()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/main/ |
D | SessionProcess.c | 82 result = IS_ATTRIBUTE(attributes, TPMA_OBJECT, noDA); in IsDAExempted() 88 result = IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, NO_DA); in IsDAExempted() 247 if(!IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, in IsPolicySessionRequired() 352 && (IS_ATTRIBUTE(attributes, TPMA_OBJECT, userWithAuth) in IsAuthValueAvailable() 354 && !IS_ATTRIBUTE(attributes, TPMA_OBJECT, adminWithPolicy)))) in IsAuthValueAvailable() 372 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, AUTHWRITE)) in IsAuthValueAvailable() 384 if(!IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITTEN)) in IsAuthValueAvailable() 392 else if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, AUTHREAD)) in IsAuthValueAvailable() 496 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, POLICYWRITE)) in IsAuthPolicyAvailable() 501 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, POLICYREAD)) in IsAuthPolicyAvailable() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Duplication/ |
D | Import.c | 121 if(IS_ATTRIBUTE(attributes, TPMA_OBJECT, fixedTPM) in TPM2_Import() 122 || IS_ATTRIBUTE(attributes, TPMA_OBJECT, fixedParent)) in TPM2_Import() 147 if(IS_ATTRIBUTE(attributes, TPMA_OBJECT, encryptedDuplication)) in TPM2_Import() 171 if(IS_ATTRIBUTE(attributes, TPMA_OBJECT, encryptedDuplication)) in TPM2_Import() 192 if(IS_ATTRIBUTE(parentObject->publicArea.objectAttributes, TPMA_OBJECT, fixedTPM)) in TPM2_Import()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/X509/ |
D | X509_spt.c | 196 && !IS_ATTRIBUTE(attributes, TPMA_OBJECT, sign); in X509ProcessExtensions() 199 && !IS_ATTRIBUTE(attributes, TPMA_OBJECT, decrypt); in X509ProcessExtensions() 201 badFixedTPM = IS_ATTRIBUTE(keyUsage.x509, TPMA_X509_KEY_USAGE, in X509ProcessExtensions() 203 && !IS_ATTRIBUTE(attributes, TPMA_OBJECT, fixedTPM); in X509ProcessExtensions() 205 badRestricted = IS_ATTRIBUTE(keyUsage.x509, TPMA_X509_KEY_USAGE, keyAgreement) in X509ProcessExtensions() 206 && !IS_ATTRIBUTE(attributes, TPMA_OBJECT, restricted); in X509ProcessExtensions()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/ |
D | NvDynamic.c | 791 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, PLATFORMCREATE)) in NvIndexIsAccessible() 803 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITELOCKED) in NvIndexIsAccessible() 814 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, READLOCKED) in NvIndexIsAccessible() 890 pAssert(IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITTEN)); in NvGetIndexData() 892 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, ORDERLY)) in NvGetIndexData() 981 if(IS_ATTRIBUTE(attributes, TPMA_NV, ORDERLY)) in NvWriteIndexAttributes() 1045 if(IS_ATTRIBUTE(s_cachedNvIndex.publicArea.attributes, TPMA_NV, ORDERLY)) in NvGetIndexInfo() 1093 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITTEN)) in NvWriteIndexData() 1100 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, ORDERLY)) in NvWriteIndexData() 1132 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, ORDERLY)) in NvWriteIndexData() [all …]
|
D | Object.c | 318 IS_ATTRIBUTE(objectAttributes, TPMA_OBJECT, stClear); in ObjectSetLoadedAttributes() 345 (IS_ATTRIBUTE(objectAttributes, TPMA_OBJECT, stClear) in ObjectSetLoadedAttributes() 362 if(IS_ATTRIBUTE(objectAttributes, TPMA_OBJECT, restricted) in ObjectSetLoadedAttributes() 364 && IS_ATTRIBUTE(objectAttributes, TPMA_OBJECT, decrypt) in ObjectSetLoadedAttributes() 432 || ((parent != NULL) && !IS_ATTRIBUTE(parent->publicArea.objectAttributes, in ObjectLoad() 893 && IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, restricted) in ObjectIsStorage() 894 && IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, decrypt) in ObjectIsStorage() 895 && !IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, sign) in ObjectIsStorage()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/AttachedComponent/ |
D | AC_Send.c | 91 if(IS_ATTRIBUTE(object->publicArea.objectAttributes, in TPM2_AC_Send() 93 || IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, in TPM2_AC_Send() 95 || IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, fixedTPM)) in TPM2_AC_Send()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/include/ |
D | NV.h | 52 ( IS_ATTRIBUTE(attributes, TPMA_NV, COUNTER) \ 53 + (IS_ATTRIBUTE(attributes, TPMA_NV, BITS) << 1) \ 54 + (IS_ATTRIBUTE(attributes, TPMA_NV, EXTEND) << 2) \
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/ |
D | CommandCodeAttributes.c | 288 || (IS_ATTRIBUTE(s_ccAttr[commandIndex], TPMA_CC, V)) != vendor) in CommandCodeToCommandIndex() 323 if(IS_ATTRIBUTE(s_ccAttr[commandIndex], TPMA_CC, V)) in GetCommandCode() 433 if(!IS_ATTRIBUTE(s_ccAttr[commandIndex], TPMA_CC, V)) in IsWriteOperation() 475 if(!IS_ATTRIBUTE(s_ccAttr[commandIndex], TPMA_CC, V)) in IsReadOperation() 552 return (IS_ATTRIBUTE(s_ccAttr[commandIndex], TPMA_CC, V)); in IsVendorCommand()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Symmetric/ |
D | EncryptDecrypt_spt.c | 78 OK = !IS_ATTRIBUTE(symKey->publicArea.objectAttributes, in EncryptDecryptShared() 81 OK = OK && IS_ATTRIBUTE(symKey->publicArea.objectAttributes, in EncryptDecryptShared() 84 OK = OK && IS_ATTRIBUTE(symKey->publicArea.objectAttributes, in EncryptDecryptShared()
|
D | EncryptDecrypt.c | 83 OK = IS_ATTRIBUTE(attributes, TPMA_OBJECT, restricted) in TPM2_EncryptDecrypt() 85 OK = OK && IS_ATTRIBUTE(attributes, TPMA_OBJECT, decrypt); in TPM2_EncryptDecrypt() 87 OK = OK && IS_ATTRIBUTE(attributes, TPMA_OBJECT, sign); in TPM2_EncryptDecrypt()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Asymmetric/ |
D | ECC_Decrypt.c | 58 if (IS_ATTRIBUTE(key->publicArea.objectAttributes, TPMA_OBJECT, restricted) in TPM2_ECC_Decrypt() 59 || !IS_ATTRIBUTE(key->publicArea.objectAttributes, TPMA_OBJECT, decrypt)) in TPM2_ECC_Decrypt()
|
D | RSA_Decrypt.c | 78 if(IS_ATTRIBUTE(rsaKey->publicArea.objectAttributes, TPMA_OBJECT, restricted) in TPM2_RSA_Decrypt() 79 || !IS_ATTRIBUTE(rsaKey->publicArea.objectAttributes, TPMA_OBJECT, decrypt)) in TPM2_RSA_Decrypt()
|
D | ECDH_ZGen.c | 67 if(IS_ATTRIBUTE(eccKey->publicArea.objectAttributes, TPMA_OBJECT, restricted) in TPM2_ECDH_ZGen() 68 || !IS_ATTRIBUTE(eccKey->publicArea.objectAttributes, TPMA_OBJECT, decrypt)) in TPM2_ECDH_ZGen()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/HashHMAC/ |
D | MAC_Start.c | 77 if(IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, restricted)) in TPM2_MAC_Start() 80 if(!IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, sign)) in TPM2_MAC_Start()
|
D | HMAC_Start.c | 71 if(IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, restricted)) in TPM2_HMAC_Start() 75 if(!IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, sign)) in TPM2_HMAC_Start()
|