User guide

18 MPC184/MPC185 Security Co-Processor Software User’s Guide MOTOROLA
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions Global Definitions
4.6.2.3 DES_CRYPT_STATIC_REQ
unsigned long opId;
unsigned long channel;
PMPC18x_NOTIFY_ROUTINE notify;
PMPC18x_NOTIFY_CTX pNotifyCtx;
PMPC18x_NOTIFY_ON_ERROR_ROUTINE notify_on_error;
MPC18x_NOTIFY_ON_ERROR_CTX ctxNotifyOnErr;
int status;
void* nextReq;
unsigned long inBytes; /* multiple of 8 bytes */
unsigned char* inData;
unsigned char* outData; /* output length = input length */
Dynamic channels are not valid for this request. A channel value of zero is invalid.
NUM_DES_STATIC_DESC defines the number of descriptors within the DPD_DES_SA_CRYPT_GROUP that
use this request.
DPD_DES_SA_CRYPT_GROUP (0x2200) defines the group for all descriptors within this request.
Table 9. DES_CRYPT_STATIC_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_SDES_CBC_ENCRYPT_SA_CRYPT 0x2200 Encrypt data in a static channel in single DES using
CBC mode
DPD_SDES_CBC_DECRYPT_SA_CRYPT 0x2201 Decrypt data in a static channel in single DES using
CBC mode
DPD_SDES_ECB_ENCRYPT_SA_CRYPT 0x2202 Encrypt data in a static channel in single DES using
ECB mode
DPD_SDES_ECB_DECRYPT_SA_CRYPT 0x2203 Decrypt data in a static channel in single DES using
ECB mode
DPD_TDES_CBC_ENCRYPT_SA_CRYPT 0x2204 Encrypt data in a static channel in triple DES using CBC
mode
DPD_TDES_CBC_DECRYPT_SA_CRYPT 0x2205 Decrypt data in a static channel in triple DES using CBC
mode
DPD_TDES_ECB_ENCRYPT_SA_CRYPT 0x2206 Encrypt data in a static channel in triple DES using ECB
mode
DPD_TDES_ECB_DECRYPT_SA_CRYPT 0x2207 Decrypt data in a static channel in triple DES using ECB
mode