Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
sns_silib.h File Reference
This file contains all of the enums and definitions that are used for the CryptoCell Lib init and finish APIs, as well as the APIs themselves. More...
Go to the source code of this file.
Enumerations | |
enum | SA_SilibRetCode_t { SA_SILIB_RET_OK = 0, SA_SILIB_RET_EINVAL_CTX_PTR, SA_SILIB_RET_EINVAL_WORK_BUF_PTR, SA_SILIB_RET_HAL, SA_SILIB_RET_PAL, SA_SILIB_RET_RND_INST_ERR, SA_SILIB_RET_EINVAL_HW_VERSION, SA_SILIB_RET_EINVAL_HW_SIGNATURE, SA_SILIB_RESERVE32B = 0x7FFFFFFFL } |
Functions | |
SA_SilibRetCode_t | SaSi_LibInit (void *rnd_ctx, CRYS_RND_WorkBuff_t *rndWorkBuff_ptr) |
This function Perform global initialization of the ARM CryptoCell 3xx runtime library; it must be called once per ARM CryptoCell for 3xx cold boot cycle. Among other initializations, this function calls CRYS_RND_Instantiation and CRYS_RND_SetGenerateVectorFunc to initialize the TRNG and the primary RND context. An initialized RND context is required for calling RND APIs and asymmetric cryptography key generation and signatures. The primary context returned by this function can be used as a single global context for all RND needs. Alternatively, other contexts may be initialized and used with a more limited scope (for specific applications or specific threads). | |
SA_SilibRetCode_t | SaSi_LibFini (void *rnd_ctx) |
This function finalize the library operations. It frees the associated resources (mutexes) and call hal and pal terminate functions. the function also call CRYS_RND_UnInstantiation to clean the rnd state. |
Detailed Description
This file contains all of the enums and definitions that are used for the CryptoCell Lib init and finish APIs, as well as the APIs themselves.
Definition in file sns_silib.h.
Generated on Tue Jul 12 2022 12:46:32 by
