Home
last modified time | relevance | path

Searched refs:IS_ATTRIBUTE (Results 1 – 25 of 46) sorted by relevance

12

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/
DNV_DefineSpace.c74 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 …]
DNV_spt.c59 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()
DNV_UndefineSpace.c61 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()
DNV_WriteLock.c77 if(!IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITEDEFINE) in TPM2_NV_WriteLock()
78 && !IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITE_STCLEAR)) in TPM2_NV_WriteLock()
DNV_Increment.c74 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/
DObject_spt.c373 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 …]
DUnseal.c60 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()
DLoadExternal.c102 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()
DMakeCredential.c71 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, decrypt) in TPM2_MakeCredential()
72 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, in TPM2_MakeCredential()
DActivateCredential.c76 || !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/
DSessionProcess.c82 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/
DImport.c121 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/
DX509_spt.c196 && !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/
DNvDynamic.c791 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 …]
DObject.c318 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/
DAC_Send.c91 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/
DNV.h52 ( 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/
DCommandCodeAttributes.c288 || (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/
DEncryptDecrypt_spt.c78 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()
DEncryptDecrypt.c83 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/
DECC_Decrypt.c58 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()
DRSA_Decrypt.c78 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()
DECDH_ZGen.c67 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/
DMAC_Start.c77 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()
DHMAC_Start.c71 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()

12