(des_ctx *(Key Structure), unsigned char *pucKey, short sMode);
This function is the key scheduler for the DES. This step must be performed before calling the encrypt or decrypt function. Key must be in hex form. Function does not convert ASCII text.
Inputs
- des_ctx *Ks -- Pointer to structure that will store the key schedule
- unsigned char *pucKey – Pointer to start of key array in need of scheduling
- short sMode -- Sets operation mode for the key scheduler
- sMode = EN0 : Mode is set to schedule key for encryption
- sMode = DE1: Mode is set to schedule key for decryption
- sMode = ENDE: Mode is set to schedule for both encryption and decryption