SAO-kirito-asuna
SAO-kirito-asuna
Thanks for response.I try to create EK so I refer to esys-create-primary-hmac.int.c and the esys_GetResourceObject is used in this c file.Now I want to get the data of EK after...
I tried the method you suggested. Esys_CreatePrimary(esysContext, ESYS_TR_RH_ENDORSEMENT, session, ESYS_TR_NONE, ESYS_TR_NONE, &inSensitive, &inPublic, &outsideInfo, &creationPCR, &objectHandle, &outPublic, &creationData, &creationHash, &creationTicket); Esys_NV_ReadPublic(esysContext, objectHandle, session, ESYS_TR_NONE, ESYS_TR_NONE, &nvPublic, &nvName); I use the...
Esys_ReadPublic(esysContext, objectHandle, session, ESYS_TR_NONE, ESYS_TR_NONE, &nvPublic, &nvName, &qualifiedName); It still report the error: WARNING:esys:api\Esys_ReadPublic.c:320:Esys_ReadPublic_Finish() Received TPM Error ERROR:esys:api\Esys_ReadPublic.c:104:Esys_ReadPublic() Esys Finish ErrorCode (0x00000082) Maybe some parameters are wrong.I define the parameters...
The value of session is 1073746249. ` ESYS_TR session = ESYS_TR_NONE; TPMT_SYM_DEF symmetric = { .algorithm = TPM2_ALG_NULL }; rval = Esys_StartAuthSession(esysContext, ESYS_TR_NONE, ESYS_TR_NONE, ESYS_TR_NONE, ESYS_TR_NONE, ESYS_TR_NONE, NULL, TPM2_SE_HMAC, &symmetric,...
The call of Esys_ReadPublic succeed if I set the session as `ESYS_TR_NONE`.But the the value of nvName is different each time.
Could I get the Abstract of the EK public key by calling Esys_ReadPublic?
I find that the ESYS_CONTEXT is different each time.Is it why I get the the different value of nvName each time?
I was mistaken.Now I print nvName->name and it's same each time.I use `cout name[j];` to print the name,is it right?
Thanks for your help.I call the `Esys_Create` to get the AIK and want to get the digest of the name of AIK.But I don't find any function to do that.How...
The ManufacturerIdTxt of the tpm is INTC.There is no EK certificate in the tpm.How do I do to get the EK certificate?