2.5.1.1 Crypto_Sym_Camellia_Init
crypto_Sym_Status_E Crypto_Sym_Camellia_Init(
st_Crypto_Sym_BlockCtx *ptr_camCtx_st,
crypto_HandlerType_E handlerType_en,
crypto_CipherOper_E cipherOpType_en,
crypto_Sym_OpModes_E opMode_en,
uint8_t *ptr_key,
uint32_t keyLen,
uint8_t *ptr_initVect,
uint32_t sessionID
);
Description
This API is used to initiate the Camellia algorithm parameters for the context.
Parameters
No. | Argument Type | Argument Name | Type | Description |
---|---|---|---|---|
1 | st_Crypto_Sym_BlockCtx* | ptr_camCtx_st | Input | Camellia algorithm context. |
2 | crypto_HandlerType_E | handlerType_en | Input | Enum for crypto operation handler i.e., SW, HW. |
3 | crypto_CipherOper_E | cipherOpType_en | Input | Selection cipher operation is encryption or decryption. |
4 | crypto_Sym_OpModes_E | opMode_en | Input | Select operation mode. i.e., ECB, CBC, or others. |
5 | uint8_t* | ptr_key | Input | Key for the Symmetric operation. |
6 | uint32_t | keyLen | Input | Key length for the Symmetric algorithm in bytes. |
7 | uint8_t* | ptr_initVect | Input | Initialization vector. Use NULL when ECB mode. |
8 | uint32_t | sessionID | Input | It defines the session ID, must be more than zero. |
Returns
Return Type | Description |
---|---|
crypto_Sym_Status_E | Function returns the status of the API. |