Macros | |
#define | DX_VERSION_PRODUCT_BIT_SHIFT 0x18UL |
#define | DX_VERSION_PRODUCT_BIT_SIZE 0x8UL |
Enumerations |
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). More... | |
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. More... | |
#define DX_VERSION_PRODUCT_BIT_SHIFT 0x18UL |
Internal defintion for the product register.
Definition at line 72 of file sns_silib.h.
#define DX_VERSION_PRODUCT_BIT_SIZE 0x8UL |
Internal defintion for the product register size.
Definition at line 74 of file sns_silib.h.
enum SA_SilibRetCode_t |
Definitions for error returns from SaSi_LibInit or SaSi_LibFini functions.
Definition at line 58 of file sns_silib.h.
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.
[in,out] | rnd_ctx | Pointer to the RND state buffer that was initialized in SaSi_LibInit. |
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).
[in,out] | rnd_ctx | Pointer to the RND state buffer, allocated by the user. This state must be saved and provided as parameter to any API that uses the RND module. |
[in] | rndWorkBuff_ptr | Scratchpad for the RND module's work. |