2.3.1 st_Crypto_Sym_BlockCtx

Description

This structure is used to define context for Block Symmetric algorithms.

Structure Elements Data TypeElement NameDescription
uint32_tcryptoSessionIDIt defines the session ID, must be more than zero.
crypto_HandlerType_EsymHandlerType_enEnum for crypto operation handler i.e., SW, HW.
crypto_Sym_CipherOper_EsymCipherOper_enSelection cipher operation is encryption or decryption.
crypto_Sym_OpModes_EsymAlgoMode_enSelect operation mode. i.e., ECB, CBC, or others.
uint8_t*ptr_keyKey for the Symmetric operation.
uint32_tsymKeySizeKey length in bytes for the Symmetric algorithm.
uint8_t*ptr_initVectInitialization vector of 16 bytes (except ECB and XTS) (known as “Nonce” for CTR). Use NULL when ECB mode or XTS mode.
uint8_tarr_symDataCtx[500]Array for the context variable data storage.