User guide
MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 17
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.2.2 DES_LOADCTX_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 ivBytes; /* 0 or 8 bytes */
unsigned char* ivData;
unsigned long keyBytes; /* 8, 16, or 24 bytes */
unsigned char* keyData;
unsigned long inBytes; /* multiple of 8 bytes */
unsigned char* inData;
unsigned char* outData; /* output length = input length */
unsigned long outCtxBytes; /* 0 or 8 bytes */
unsigned char* outCtxData;/* MPCTEST: added outCtxData */
Dynamic channels are not valid for this request. A channel value of zero is invalid.
NUM_DES_LOADCTX_CRYPT_STATIC_DESC defines the number of descriptors within the
DPD_DES_SA_LDCTX_CRYPT_GROUP that use this request.
DPD_DES_SA_LDCTX_CRYPT_GROUP (0x2100) defines the group for all descriptors within this request.
Table 8. DES_LOADCTX_CRYPT_STATIC_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_SDES_CBC_ENCRYPT_SA_LDCTX_CRYPT 0x2100 Load encrypted context from a static channel to
encrypt in single DES using CBC mode
DPD_SDES_CBC_DECRYPT_SA_LDCTX_CRYPT 0x2101 Load encrypted context from a static channel to
decrypt in single DES using CBC mode
DPD_SDES_ECB_ENCRYPT_SA_LDCTX_CRYPT 0x2102 Load encrypted context from a static channel to
encrypt in single DES using ECB mode
DPD_SDES_ECB_DECRYPT_SA_LDCTX_CRYPT 0x2103 Load encrypted context from a static channel to
decrypt in single DES using ECB mode
DPD_TDES_CBC_ENCRYPT_SA_LDCTX_CRYPT 0x2104 Load encrypted context from a static channel to
encrypt in triple DES using CBC mode
DPD_TDES_CBC_DECRYPT_SA_LDCTX_CRYPT 0x2105 Load encrypted context from a static channel to
decrypt in triple DES using CBC mode
DPD_TDES_ECB_ENCRYPT_SA_LDCTX_CRYPT 0x2106 Load encrypted context from a static channel to
encrypt in triple DES using ECB mode
DPD_TDES_ECB_DECRYPT_SA_LDCTX_CRYPT 0x2107 Load encrypted context from a static channel to
decrypt in triple DES using ECB mode










