5.7.24. SE05X MultiThread demo

This project demonstrates two threads, opening two sessions with the se05x using tunneling api’s. Each thread performing ecc sign and verify operations.

If we use user sessions then at least two authentication objects need to be provisioned in se05x using the delete and test provision utility before running the demo:

In Multistep operations the concurrent execution with same cipher mode is not allowd. (Refer Known limitations)

Note

This demo can be build for FreeRTOS on embedded platforms or for pthread on POSIX systems (e.g. Linux).

5.7.24.1. Prerequisites

  • Micro USB cable

  • FRDM-K64F/imx-RT1060/Raspberry-Pi/iMX board

  • Personal Computer

  • SE05x Arduino shield

5.7.24.2. Building the Demo

5.7.24.3. Running the Example

If you have built a binary, flash the binary on to the board and reset the board.

If you have built an exe to be run from Windows using VCOM, run as:

se05x_Multithread.exe <PORT NAME>

Where <PORT NAME> is the VCOM COM port.

On Raspberry-Pi or iMX board, run as:

./se05x_Multithread

5.7.24.4. Console output

If everything is successful, the output will be similar to:

sss   :WARN :Communication channel is with Plain.
sss   :WARN :!!!Not recommended for production use.!!!
sss   :WARN :Communication channel is with Plain.
sss   :WARN :!!!Not recommended for production use.!!!
App   :INFO :Key Store Generate Key success user 2!!!
App   :INFO :Key Store Generate Key success user 1!!!
App   :INFO :sss_asymmetric_sign_digest success user 2
App   :INFO :sss_asymmetric_sign_digest success user 1
App   :INFO :Set public key success user 2
App   :INFO :Set public key success user 1
App   :INFO :sss_asymmetric_verify_digest success user 2
App   :INFO :Done User 2
App   :INFO :sss_asymmetric_verify_digest success user 1
App   :INFO :Done User 1
App   :INFO :SE05x Multithreaded example finished