Home
last modified time | relevance | path

Searched refs:nvAttributes (Results 1 – 6 of 6) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/
DNV_WriteLock.c60 TPMA_NV nvAttributes = nvIndex->publicArea.attributes; in TPM2_NV_WriteLock() local
66 result = NvWriteAccessChecks(in->authHandle, in->nvIndex, nvAttributes); in TPM2_NV_WriteLock()
77 if(!IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITEDEFINE) in TPM2_NV_WriteLock()
78 && !IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITE_STCLEAR)) in TPM2_NV_WriteLock()
84 SET_ATTRIBUTE(nvAttributes, TPMA_NV, WRITELOCKED); in TPM2_NV_WriteLock()
88 nvAttributes); in TPM2_NV_WriteLock()
DNV_ReadLock.c61 TPMA_NV nvAttributes = nvIndex->publicArea.attributes; in TPM2_NV_ReadLock() local
68 nvAttributes); in TPM2_NV_ReadLock()
79 if(!IS_ATTRIBUTE(nvAttributes, TPMA_NV, READ_STCLEAR)) in TPM2_NV_ReadLock()
85 SET_ATTRIBUTE(nvAttributes, TPMA_NV, READLOCKED); in TPM2_NV_ReadLock()
90 nvAttributes); in TPM2_NV_ReadLock()
/external/tpm2-tss/test/integration/
Dsapi-hmac-auth.int.c99 TPMA_NV nvAttributes, in nv_rw_with_session() argument
156 nvAttributes, in nv_rw_with_session()
412 TPMA_NV nvAttributes; in test_invoke() local
415 nvAttributes = TPMA_NV_AUTHREAD | TPMA_NV_AUTHWRITE | TPMA_NV_PLATFORMCREATE; in test_invoke()
416 rc = nv_rw_with_session (sys_ctx, &authPolicy, nvAttributes, TPM2_SE_HMAC); in test_invoke()
425 nvAttributes = TPMA_NV_POLICYREAD | TPMA_NV_POLICYWRITE | TPMA_NV_PLATFORMCREATE; in test_invoke()
426 rc = nv_rw_with_session (sys_ctx, &authPolicy, nvAttributes, TPM2_SE_POLICY); in test_invoke()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/main/
DSessionProcess.c363 TPMA_NV nvAttributes; in IsAuthValueAvailable() local
367 nvAttributes = nvIndex->publicArea.attributes; in IsAuthValueAvailable()
372 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, AUTHWRITE)) in IsAuthValueAvailable()
380 if(IsNvPinFailIndex(nvAttributes) in IsAuthValueAvailable()
381 || IsNvPinPassIndex(nvAttributes)) in IsAuthValueAvailable()
384 if(!IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITTEN)) in IsAuthValueAvailable()
392 else if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, AUTHREAD)) in IsAuthValueAvailable()
483 TPMA_NV nvAttributes = nvIndex->publicArea.attributes; in IsAuthPolicyAvailable() local
496 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, POLICYWRITE)) in IsAuthPolicyAvailable()
501 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, POLICYREAD)) in IsAuthPolicyAvailable()
[all …]
/external/tpm2-tss/test/tpmclient/
Dtpmclient.int.c923 TPMA_NV nvAttributes; in CreateNVIndex() local
957 *(UINT32 *)( (void *)&nvAttributes ) = 0; in CreateNVIndex()
958 nvAttributes |= TPMA_NV_POLICYREAD; in CreateNVIndex()
959 nvAttributes |= TPMA_NV_POLICYWRITE; in CreateNVIndex()
960 nvAttributes |= TPMA_NV_PLATFORMCREATE; in CreateNVIndex()
963 TPM20_INDEX_PASSWORD_TEST, TPM2_ALG_SHA256, nvAttributes, 32 ); in CreateNVIndex()
1946 TPMA_NV nvAttributes; in GetSetEncryptParamTests() local
1980 *(UINT32 *)( (void *)&nvAttributes ) = 0; in GetSetEncryptParamTests()
1981 nvAttributes |= TPMA_NV_AUTHREAD; in GetSetEncryptParamTests()
1982 nvAttributes |= TPMA_NV_AUTHWRITE; in GetSetEncryptParamTests()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/
DNvDynamic.c884 TPMA_NV nvAttributes; in NvGetIndexData() local
888 nvAttributes = nvIndex->publicArea.attributes; in NvGetIndexData()
890 pAssert(IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITTEN)); in NvGetIndexData()
892 if(IS_ATTRIBUTE(nvAttributes, TPMA_NV, ORDERLY)) in NvGetIndexData()