Closed SoftAvocado closed 6 months ago
Hi @SoftAvocado,
Before using the Shielded Connection, please ensure that the OPTIGA Trust M and the Host are paired using a shared secret (this secret key is used for the secure communication). To share the secret, you have to execute the pair_host_and_optiga_using_pre_shared_secret() function. Please refer the existing example for details on this implementation - https://github.com/Infineon/optiga-trust-m/blob/develop/examples/optiga/usecases/example_pair_host_and_optiga_using_pre_shared_secret.c
@ShaikKarishma0 thank you for response. It seems everything was correct in my implementation, but for some reason in the archive that came with OPTIGA Trust M there were pbs keys in auto_keys.txt and auto keys in PBS_keys.txt...
I have another question. I'd like to change metadata of Platform Binding Secret (0xE140), so it can be changed only in Shielded Connection (without authorization):
0xD0-Change access
20 e1 40
Since LcsO is already in Operational state, am I correct that I can only change metadata with Confidentiality protected update?
Hi @SoftAvocado,
Your understanding is correct. If the object is in operational state, you need to use the protected update method with necessary access conditions for the metadata update. For Metadata update, Metadata Update Descriptor tag (0xD8) with the respective trust anchor OID must be present in the target OID metadata. Please refer the following blog for more details on the protected update process.
Thanks a lot!
Problem I am trying to perform Authorization for Optiga Trust M Express, but get the error 0x0107 from function optiga_crypt_hmac_verify.
Context Platform Binding Secret (0xE140) has the following metadata:
Autoref secret (0xF1D0) has the following metadata:
I have Platform Binding Secret and Autoref secret for my Optiga as hexadecimal strings.
I'm using the following code to perform authorization (note: the keys in this example are mocked):
Question So, it seems like the shielded connection (which is required to execute Autoref secret (0xF1D0), has been established, but I still get a handshake error. Could you please help me to figure out what am i doing wrong?