MbedTLS Server connection with client using SE052

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MbedTLS Server connection with client using SE052

94 Views
MohitGediya
Contributor II

Hardware setup:
Board SoC: ESP32C3devkitm board and IC is SE052F2HN2Z019HJ.

Now i use nano plug and trust module's "se05x_mbedtls_alt_testexample.
Flash in board. But i face issue to verify "plugandtrust: Error in mbedtls_pk_verify. ret = -19968".

I change both key as per document of SE052. In my code.

Here is full sample application. Please verify it and suggest me the change that i need to fix.
Also give valid informative document about this so, i can explore more features of it.
And also,
I want to create TCP zephyr server based sample application. for that what informations i can store inside SE052 IC(this ic)? Which is use for cryptographic operation.
Which api and steps i need to follow to send encrypted data to client and client will decrypt the data.(client is other same setup board).
Which type of algorithm should i use for mbedTLS.

@Kan @Kan_Li @tseco  

     

 
uint8_t scp03_enc_key[16] = {0x3a, 0xe4, 0x41, 0xc7, 0x47, 0xe3, 0x2e, 0xbc, 0x16, 0xb3, 0xbb, 0x2d, 0x84, 0x3c, 0x6d, 0xd8};
uint8_t scp03_mac_key[16] = {0x6c, 0x18, 0xf3, 0xd0, 0x8f, 0xee, 0x1c, 0xb9, 0x6a, 0x3c, 0x8d, 0xe5, 0xd3, 0x53, 0x8a, 0xaa};
Tags (1)
0 Kudos
Reply
2 Replies

12 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @MohitGediya ,

 

Is it possible to have the APDU log out of the test when you run "se05x_mbedtls_alt_testexample? 

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

7 Views
MohitGediya
Contributor II

Here is logs.
@Kan_Li 

0 Kudos
Reply