Hello @Kan_Li ,
The provisioning looks like this:
We have a generated EC key pair. We generated it with openssl. This is the keypair for the host.
The public part of this EC key pair was written into the SE with this command:
Se05x_API_WriteECKey(&pSession->s_ctx, NULL, SE05x_MaxAttemps_UNLIMITED, id, kSE05x_ECCurve_NIST_P256, NULL, 0, ECKey_SE_PublicEcdsakey, publicKeyLen, (SE05x_INS_t)kSE05x_AttestationType_AUTH, kSE05x_KeyPart_Public);
Of course I opened a plain (default) session before this call.
And then in the night I could solve to delete this object, with the factory reset. I created an Auth_ID object on the FACTORY RESET object ID. I opened a session with it, and I called this:
Se05x_API_DeleteAll(&pSession->s_ctx);
Now I would like to provision an EC key again (as I wrote it above), but it is not working.
Could you tell, what is needed/mandatory after a factory reset? I think something is missing and that is why I can not write the public part of an EC key into the SE again.
Thank you!
Best regards,
Laszlo