/external/tpm2-tss/test/integration/ |
D | sapi-asymmetric-encrypt-decrypt.int.c | 69 *(UINT32 *)&(in_public.publicArea.objectAttributes) = 0; in test_invoke() 70 in_public.publicArea.objectAttributes |= TPMA_OBJECT_RESTRICTED; in test_invoke() 71 in_public.publicArea.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_invoke() 72 in_public.publicArea.objectAttributes |= TPMA_OBJECT_DECRYPT; in test_invoke() 73 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDTPM; in test_invoke() 74 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDPARENT; in test_invoke() 75 in_public.publicArea.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_invoke() 109 *(UINT32 *)&(in_public.publicArea.objectAttributes) = 0; in test_invoke() 110 in_public.publicArea.objectAttributes &= ~TPMA_OBJECT_RESTRICTED; in test_invoke() 111 in_public.publicArea.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_invoke() [all …]
|
D | sapi-create-loaded.int.c | 47 in_public.objectAttributes |= TPMA_OBJECT_RESTRICTED; in test_invoke() 48 in_public.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_invoke() 49 in_public.objectAttributes |= TPMA_OBJECT_DECRYPT; in test_invoke() 50 in_public.objectAttributes |= TPMA_OBJECT_FIXEDTPM; in test_invoke() 51 in_public.objectAttributes |= TPMA_OBJECT_FIXEDPARENT; in test_invoke() 52 in_public.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_invoke()
|
D | sapi-command-cancel.int.c | 50 in_public.publicArea.objectAttributes |= TPMA_OBJECT_RESTRICTED; in test_invoke() 51 in_public.publicArea.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_invoke() 52 in_public.publicArea.objectAttributes |= TPMA_OBJECT_DECRYPT; in test_invoke() 53 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDTPM; in test_invoke() 54 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDPARENT; in test_invoke() 55 in_public.publicArea.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_invoke()
|
D | sapi-policy-template.int.c | 83 in_public.publicArea.objectAttributes = TPMA_OBJECT_RESTRICTED; in test_invoke() 84 in_public.publicArea.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_invoke() 85 in_public.publicArea.objectAttributes |= TPMA_OBJECT_DECRYPT; in test_invoke() 86 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDTPM; in test_invoke() 87 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDPARENT; in test_invoke() 88 in_public.publicArea.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_invoke()
|
D | sapi-policy-authorizeNV.int.c | 165 in_public.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_invoke() 166 in_public.objectAttributes |= TPMA_OBJECT_DECRYPT; in test_invoke() 167 in_public.objectAttributes |= TPMA_OBJECT_SIGN_ENCRYPT; in test_invoke() 168 in_public.objectAttributes |= TPMA_OBJECT_FIXEDTPM; in test_invoke() 169 in_public.objectAttributes |= TPMA_OBJECT_FIXEDPARENT; in test_invoke() 170 in_public.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_invoke()
|
D | esys-hmac.int.c | 80 inPublic.publicArea.objectAttributes |= TPMA_OBJECT_SIGN_ENCRYPT; in test_esys_hmac() 81 inPublic.publicArea.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in test_esys_hmac() 82 inPublic.publicArea.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_esys_hmac()
|
D | sapi-util.c | 62 in_public.publicArea.objectAttributes |= TPMA_OBJECT_RESTRICTED; in create_primary_rsa_2048_aes_128_cfb() 63 in_public.publicArea.objectAttributes |= TPMA_OBJECT_USERWITHAUTH; in create_primary_rsa_2048_aes_128_cfb() 64 in_public.publicArea.objectAttributes |= TPMA_OBJECT_DECRYPT; in create_primary_rsa_2048_aes_128_cfb() 65 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDTPM; in create_primary_rsa_2048_aes_128_cfb() 66 in_public.publicArea.objectAttributes |= TPMA_OBJECT_FIXEDPARENT; in create_primary_rsa_2048_aes_128_cfb() 67 in_public.publicArea.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in create_primary_rsa_2048_aes_128_cfb() 112 .publicArea.objectAttributes = TPMA_OBJECT_DECRYPT | in create_aes_128_cfb() 185 .publicArea.objectAttributes = TPMA_OBJECT_RESTRICTED | in create_keyedhash_key()
|
D | sapi-create-keyedhash-sha1-hmac.int.c | 59 inPublic.publicArea.objectAttributes |= TPMA_OBJECT_SIGN_ENCRYPT; in test_invoke() 60 inPublic.publicArea.objectAttributes |= TPMA_OBJECT_SENSITIVEDATAORIGIN; in test_invoke()
|
D | esys-create-fail.int.c | 82 .objectAttributes = (TPMA_OBJECT_USERWITHAUTH | in test_esys_create_fail() 120 .objectAttributes = (TPMA_OBJECT_USERWITHAUTH | in test_esys_create_fail() 230 .objectAttributes = (TPMA_OBJECT_USERWITHAUTH | in test_esys_create_fail()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/ |
D | Object.c | 313 TPMA_OBJECT objectAttributes = object->publicArea.objectAttributes; in ObjectSetLoadedAttributes() local 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() 495 MemorySet(&object->objectAttributes, 0, sizeof(TPMA_OBJECT)); in AllocateSequenceSlot() 508 SET_ATTRIBUTE(object->objectAttributes, TPMA_OBJECT, noDA); in AllocateSequenceSlot() 893 && IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, restricted) in ObjectIsStorage() 894 && IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, decrypt) in ObjectIsStorage() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/ |
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 | ActivateCredential.c | 76 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, decrypt) in TPM2_ActivateCredential() 77 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, in TPM2_ActivateCredential()
|
D | MakeCredential.c | 71 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, TPMA_OBJECT, decrypt) in TPM2_MakeCredential() 72 || !IS_ATTRIBUTE(object->publicArea.objectAttributes, in TPM2_MakeCredential()
|
/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/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 | MAC.c | 75 if(IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, restricted)) in TPM2_MAC() 78 if(!IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, sign)) in TPM2_MAC()
|
D | HMAC.c | 70 if(IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, restricted)) in TPM2_HMAC() 74 if(!IS_ATTRIBUTE(publicArea->objectAttributes, TPMA_OBJECT, sign)) in TPM2_HMAC()
|
/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()
|
D | ZGen_2Phase.c | 71 if(IS_ATTRIBUTE(eccKey->publicArea.objectAttributes, TPMA_OBJECT, restricted) in TPM2_ZGen_2Phase() 72 || !IS_ATTRIBUTE(eccKey->publicArea.objectAttributes, TPMA_OBJECT, decrypt)) in TPM2_ZGen_2Phase()
|
/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()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Signature/ |
D | Sign.c | 72 if(IS_ATTRIBUTE(signObject->publicArea.objectAttributes, TPMA_OBJECT, x509sign)) in TPM2_Sign() 82 || IS_ATTRIBUTE(signObject->publicArea.objectAttributes, in TPM2_Sign()
|