3.3.7. Example Boot-Up

The Examples and use cases based on SSS APIs are them selves (more or less) Cryptosystem agnostic, how ever the platforms where they run and how they run would be very specific.

e.g. While running from PC with a Secure Element, you may need to choose and connect to specific COM Port / Socket. On the other hand, when running from different embedded platforms like FREEDOM K64F, iMX RT 1050, etc., few board specific steps are needed.

To simplify examples, them selves, the files in sss/ex/inc and sss/ex/src try to isolate such details.

Some of the scenarios of boot up are:

3.3.7.1. Booting from Windows / Linux

In such a system, many decisions are taken at run time. e.g. COM Port for interface to the secure element, etc.

In such a system, examples also have access to command line arguments and environment variables.

Such a setup is mostly for testing and early prototyping.

../../../_images/ex-boot-windows.png

3.3.7.2. Booting from an embedded system, without any RTOS

In such a system, the example is pre-compiled for specific platform/combination. There are very less decisions to be taken at run time, and most decisions are pre-selected during build/compile time.

../../../_images/ex-boot-no-rtos-embedded.png

3.3.7.3. Booting from an embedded system, with RTOS

In such a system, the example uses RTOS. And the example itself is to be run from an RTOS Thread context.

../../../_images/ex-boot-with-rtos-embedded.png