Hello Michael,
Now I have an encrypted platform SCP session on ID 0. I generate an ECC key pair like this:
sss_key_store_context_init(pKeyStore, pPfSession);
sss_key_object_init(&asymmetricKeyPair, pKeyStore);
sss_key_object_allocate_handle(&asymmetricKeyPair, id, kSSS_KeyPart_Pair, kSSS_CipherType_EC_NIST_P, keyByteLenMax, kKeyObject_Mode_Persistent);
sss_key_store_generate_key(pKeyStore, &asymmetricKeyPair, keyBitLen, NULL);
with this the key pair is there (in SE). Then I would like to get the public key with this call:
sss_key_store_get_key(pKeyStore, &asymmetricKeyPair, publicKey, &len , &keyBitLen);
The keystore and the keyobject and the session is the same.
And it is failed at Se05x_API_ReadObject call.
Could you help me to solve this issue as well?
Best regards,
Laszlo