This example uses the SE Manager API to perform the stream ciphers on the supported Series 2 device.
In this example, test vectors are used to verify the stream ciphers.
The example redirects standard I/O to the virtual serial port (VCOM) of the kit. By default, the serial port setting is 115200 bps and 8-N-1 configuration.
The example has been instrumented with code to count the number of clock cycles spent in different operations. The results are printed on the VCOM serial port console. This feature can be disabled by defining SE_MANAGER_PRINT=0 (default is 1) in the IDE setting (Preprocessor->Defined symbols).
The following cipher algorithms are supported in this example:
AES CMACAES GCMChaCha20 (Secure Vault device only)The following SE Manager APIs are used in this example:
sl_se_initsl_se_deinitsl_se_init_command_contextsl_se_deinit_command_contextsl_se_validate_keysl_se_get_storage_sizesl_se_generate_keysl_se_cmac_startssl_se_cmac_updatesl_se_cmac_finishsl_se_gcm_startssl_se_gcm_updatesl_se_gcm_finishsl_se_chacha20_crypt (Secure Vault device only)Adapter Firmware under General Device Information in Simplicity Studio 5 Users Guide).Secure Firmware under General Device Information in Simplicity Studio 5 Users Guide).Platform() checkbox to browse the platform examples).Optimize for debugging (-Og) on Simplicity IDE and None on IAR Embedded Workbench.