Home
last modified time | relevance | path

Searched refs:nvIndexNode (Results 1 – 14 of 14) sorted by relevance

/external/tpm2-tss/src/tss2-esys/api/
DEsys_NV_ChangeAuth.c163 RSRC_NODE_T *nvIndexNode; in Esys_NV_ChangeAuth_Async() local
181 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_ChangeAuth_Async()
186 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_ChangeAuth_Async()
187 : nvIndexNode->rsrc.handle, newAuth); in Esys_NV_ChangeAuth_Async()
193 if (nvIndexNode != NULL) in Esys_NV_ChangeAuth_Async()
195 &nvIndexNode->rsrc.name, &nvIndexNode->auth); in Esys_NV_ChangeAuth_Async()
203 r = iesys_gen_auths(esysContext, nvIndexNode, NULL, NULL, &auths); in Esys_NV_ChangeAuth_Async()
255 RSRC_NODE_T *nvIndexNode; in Esys_NV_ChangeAuth_Finish() local
318 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_ChangeAuth_Finish()
322 nvIndexNode->auth.size = 0; in Esys_NV_ChangeAuth_Finish()
[all …]
DEsys_NV_SetBits.c169 RSRC_NODE_T *nvIndexNode; in Esys_NV_SetBits_Async() local
189 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_SetBits_Async()
196 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_SetBits_Async()
197 : nvIndexNode->rsrc.handle, bits); in Esys_NV_SetBits_Async()
213 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_SetBits_Async()
339 RSRC_NODE_T *nvIndexNode; in Esys_NV_SetBits_Finish() local
340 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_SetBits_Finish()
344 if (nvIndexNode != NULL) { in Esys_NV_SetBits_Finish()
345 nvIndexNode->rsrc.misc.rsrc_nv_pub.nvPublic.attributes |= TPMA_NV_WRITTEN; in Esys_NV_SetBits_Finish()
346 r = iesys_nv_get_name(&nvIndexNode->rsrc.misc.rsrc_nv_pub, in Esys_NV_SetBits_Finish()
[all …]
DEsys_NV_Extend.c163 RSRC_NODE_T *nvIndexNode; in Esys_NV_Extend_Async() local
183 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Extend_Async()
190 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_Extend_Async()
191 : nvIndexNode->rsrc.handle, data); in Esys_NV_Extend_Async()
207 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_Extend_Async()
332 RSRC_NODE_T *nvIndexNode; in Esys_NV_Extend_Finish() local
333 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Extend_Finish()
337 if (nvIndexNode != NULL) { in Esys_NV_Extend_Finish()
338 nvIndexNode->rsrc.misc.rsrc_nv_pub.nvPublic.attributes |= TPMA_NV_WRITTEN; in Esys_NV_Extend_Finish()
339 r = iesys_nv_get_name(&nvIndexNode->rsrc.misc.rsrc_nv_pub, in Esys_NV_Extend_Finish()
[all …]
DEsys_NV_Write.c167 RSRC_NODE_T *nvIndexNode; in Esys_NV_Write_Async() local
187 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Write_Async()
194 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_Write_Async()
195 : nvIndexNode->rsrc.handle, data, offset); in Esys_NV_Write_Async()
211 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_Write_Async()
337 RSRC_NODE_T *nvIndexNode; in Esys_NV_Write_Finish() local
338 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Write_Finish()
342 if (nvIndexNode != NULL) { in Esys_NV_Write_Finish()
343 nvIndexNode->rsrc.misc.rsrc_nv_pub.nvPublic.attributes |= TPMA_NV_WRITTEN; in Esys_NV_Write_Finish()
344 r = iesys_nv_get_name(&nvIndexNode->rsrc.misc.rsrc_nv_pub, in Esys_NV_Write_Finish()
[all …]
DEsys_NV_ReadPublic.c157 RSRC_NODE_T *nvIndexNode; in Esys_NV_ReadPublic_Async() local
175 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_ReadPublic_Async()
180 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_ReadPublic_Async()
181 : nvIndexNode->rsrc.handle); in Esys_NV_ReadPublic_Async()
192 r = iesys_gen_auths(esysContext, nvIndexNode, NULL, NULL, &auths); in Esys_NV_ReadPublic_Async()
338 RSRC_NODE_T *nvIndexNode; in Esys_NV_ReadPublic_Finish() local
339 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_ReadPublic_Finish()
342 if (nvIndexNode != NULL) { in Esys_NV_ReadPublic_Finish()
343 nvIndexNode->rsrc.rsrcType = IESYSC_NV_RSRC; in Esys_NV_ReadPublic_Finish()
344 nvIndexNode->rsrc.name = *lnvName; in Esys_NV_ReadPublic_Finish()
[all …]
DEsys_NV_WriteLock.c164 RSRC_NODE_T *nvIndexNode; in Esys_NV_WriteLock_Async() local
184 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_WriteLock_Async()
191 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_WriteLock_Async()
192 : nvIndexNode->rsrc.handle); in Esys_NV_WriteLock_Async()
208 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_WriteLock_Async()
334 RSRC_NODE_T *nvIndexNode; in Esys_NV_WriteLock_Finish() local
335 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_WriteLock_Finish()
339 if (nvIndexNode != NULL) { in Esys_NV_WriteLock_Finish()
340 nvIndexNode->rsrc.misc.rsrc_nv_pub.nvPublic.attributes |= TPMA_NV_WRITELOCKED; in Esys_NV_WriteLock_Finish()
341 r = iesys_nv_get_name(&nvIndexNode->rsrc.misc.rsrc_nv_pub, in Esys_NV_WriteLock_Finish()
[all …]
DEsys_NV_UndefineSpaceSpecial.c161 RSRC_NODE_T *nvIndexNode; in Esys_NV_UndefineSpaceSpecial_Async() local
180 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_UndefineSpaceSpecial_Async()
187 (nvIndexNode == NULL) in Esys_NV_UndefineSpaceSpecial_Async()
189 : nvIndexNode->rsrc.handle, in Esys_NV_UndefineSpaceSpecial_Async()
198 if (nvIndexNode != NULL) in Esys_NV_UndefineSpaceSpecial_Async()
200 &nvIndexNode->rsrc.name, &nvIndexNode->auth); in Esys_NV_UndefineSpaceSpecial_Async()
213 r = iesys_gen_auths(esysContext, nvIndexNode, platformNode, NULL, &auths); in Esys_NV_UndefineSpaceSpecial_Async()
265 RSRC_NODE_T *nvIndexNode; in Esys_NV_UndefineSpaceSpecial_Finish() local
329 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_UndefineSpaceSpecial_Finish()
335 session->rsrc.misc.rsrc_session.sizeHmacValue -= nvIndexNode->auth.size; in Esys_NV_UndefineSpaceSpecial_Finish()
DEsys_NV_Increment.c164 RSRC_NODE_T *nvIndexNode; in Esys_NV_Increment_Async() local
184 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Increment_Async()
191 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_Increment_Async()
192 : nvIndexNode->rsrc.handle); in Esys_NV_Increment_Async()
208 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_Increment_Async()
334 RSRC_NODE_T *nvIndexNode; in Esys_NV_Increment_Finish() local
335 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Increment_Finish()
339 if (nvIndexNode != NULL) { in Esys_NV_Increment_Finish()
340 nvIndexNode->rsrc.misc.rsrc_nv_pub.nvPublic.attributes |= TPMA_NV_WRITTEN; in Esys_NV_Increment_Finish()
341 r = iesys_nv_get_name(&nvIndexNode->rsrc.misc.rsrc_nv_pub, in Esys_NV_Increment_Finish()
[all …]
DEsys_NV_ReadLock.c164 RSRC_NODE_T *nvIndexNode; in Esys_NV_ReadLock_Async() local
184 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_ReadLock_Async()
191 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_ReadLock_Async()
192 : nvIndexNode->rsrc.handle); in Esys_NV_ReadLock_Async()
208 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_ReadLock_Async()
334 RSRC_NODE_T *nvIndexNode; in Esys_NV_ReadLock_Finish() local
335 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_ReadLock_Finish()
339 if (nvIndexNode != NULL) { in Esys_NV_ReadLock_Finish()
340 nvIndexNode->rsrc.misc.rsrc_nv_pub.nvPublic.attributes |= TPMA_NV_READLOCKED; in Esys_NV_ReadLock_Finish()
341 r = iesys_nv_get_name(&nvIndexNode->rsrc.misc.rsrc_nv_pub, in Esys_NV_ReadLock_Finish()
[all …]
DEsys_NV_UndefineSpace.c162 RSRC_NODE_T *nvIndexNode; in Esys_NV_UndefineSpace_Async() local
182 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_UndefineSpace_Async()
189 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_UndefineSpace_Async()
190 : nvIndexNode->rsrc.handle); in Esys_NV_UndefineSpace_Async()
206 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_UndefineSpace_Async()
DEsys_PolicyAuthorizeNV.c162 RSRC_NODE_T *nvIndexNode; in Esys_PolicyAuthorizeNV_Async() local
182 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_PolicyAuthorizeNV_Async()
192 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_PolicyAuthorizeNV_Async()
193 : nvIndexNode->rsrc.handle, in Esys_PolicyAuthorizeNV_Async()
212 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, policySessionNode, &auths); in Esys_PolicyAuthorizeNV_Async()
DEsys_PolicyNV.c170 RSRC_NODE_T *nvIndexNode; in Esys_PolicyNV_Async() local
190 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_PolicyNV_Async()
199 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_PolicyNV_Async()
200 : nvIndexNode->rsrc.handle, in Esys_PolicyNV_Async()
219 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, policySessionNode, &auths); in Esys_PolicyNV_Async()
DEsys_NV_Read.c162 RSRC_NODE_T *nvIndexNode; in Esys_NV_Read_Async() local
181 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Read_Async()
188 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_Read_Async()
189 : nvIndexNode->rsrc.handle, size, offset); in Esys_NV_Read_Async()
205 r = iesys_gen_auths(esysContext, authHandleNode, nvIndexNode, NULL, &auths); in Esys_NV_Read_Async()
DEsys_NV_Certify.c180 RSRC_NODE_T *nvIndexNode; in Esys_NV_Certify_Async() local
201 r = esys_GetResourceObject(esysContext, nvIndex, &nvIndexNode); in Esys_NV_Certify_Async()
210 (nvIndexNode == NULL) ? TPM2_RH_NULL in Esys_NV_Certify_Async()
211 : nvIndexNode->rsrc.handle, qualifyingData, in Esys_NV_Certify_Async()
233 r = iesys_gen_auths(esysContext, signHandleNode, authHandleNode, nvIndexNode, &auths); in Esys_NV_Certify_Async()