* [tpm2] Esys primary key creation error
@ 2020-08-20 13:53 FIXED-TERM Schick Felix
0 siblings, 0 replies; only message in thread
From: FIXED-TERM Schick Felix @ 2020-08-20 13:53 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
Hello Everybody,
I am currently experimenting with the Esys-API and have encountered a problem during the primary key creation.
TPM2B_PUBLIC * primaryOutPublic;
TPM2B_CREATION_DATA * primaryCreationData;
TPM2B_DIGEST * primaryCreationHash;
TPMT_TK_CREATION * primaryCreationTicket;
ESYS_TR primaryObjectHandle;
// Create primary key
rc = Esys_CreatePrimary(esysContext, ESYS_TR_RH_OWNER, ESYS_TR_NONE, ESYS_TR_NONE, ESYS_TR_NONE,
&primaryInSensitive, &primaryInPublic, &outsideInfo, &creationPCR,
&primaryObjectHandle, &primaryOutPublic, &primaryCreationData, &primaryCreationHash, &primaryCreationTicket);
if( rc != TSS2_RC_SUCCESS){
std::cerr << "Creation of primary key failed with " <<
"response code: 0x"<< std::hex << rc << std::endl;
Esys_Finalize(&esysContext);
return EXIT_FAILURE;
}
I get the following error:
ERROR:esys:src/tss2-esys/esys_iutil.c:1178:check_session_feasibility() Not enough sessions provided for the command.
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:208:Esys_CreatePrimary_Async() Check session usage ErrorCode (0x0007000b)
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:110:Esys_CreatePrimary() Error in async function ErrorCode (0x0007000b)
I hope this is enough context for the trained eye, I would be very grateful for help with this issue.
Thank you very much
Felix Schick
[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 7812 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-20 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-20 13:53 [tpm2] Esys primary key creation error FIXED-TERM Schick Felix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox