2.3.1 st_Crypto_Sym_BlockCtx
Description
This structure is used to define context for Block Symmetric algorithms.
Structure Elements Data Type | Element Name | Description |
---|---|---|
uint32_t | cryptoSessionID | It defines the session ID, must be more than zero. |
crypto_HandlerType_E | symHandlerType_en | Enum for crypto operation handler i.e., SW, HW. |
crypto_Sym_CipherOper_E | symCipherOper_en | Selection cipher operation is encryption or decryption. |
crypto_Sym_OpModes_E | symAlgoMode_en | Select operation mode. i.e., ECB, CBC, or others. |
uint8_t* | ptr_key | Key for the Symmetric operation. |
uint32_t | symKeySize | Key length in bytes for the Symmetric algorithm. |
uint8_t* | ptr_initVect | Initialization vector of 16 bytes (except ECB and XTS) (known as “Nonce” for CTR). Use NULL when ECB mode or XTS mode. |
uint8_t | arr_symDataCtx[500] | Array for the context variable data storage. |