(des_ctx *(Key Structure), unsigned char *pucData, short sBlocks, unsigned char *pucKey1,
unsigned char *pucKey2, unsigned char *pucKey3,
unsigned char *pucIV);
This function performs a 3DES encryption process in the form Dec[key1](Enc[key2](Dec[key3](Data))) with CBC mode enabled. Data and keys must be in hex form. Function does not convert ASCII text.
Inputs
- des_ctx *Ks -- Pointer to structure that will store the key scheduler
- unsigned char *pucData – Pointer to start of data array that will be deciphered
- short sBlocks – Value indicating how many 64-bit blocks need to be deciphered
- unsigned char *pucKey1 – Pointer to the first key location
- unsigned char *pucKey2 – Pointer to the second key location
- unsigned char *pucKey3 – Pointer to the second key location
- unsigned char *pucIV – Pointer to start of array of Initialization Vector (IV)