User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 21
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.2.6 DES_LOADCTX_CRYPT_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 inIvBytes; /* 0 or 8 bytes */
unsigned char* inIvData;
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 outIvBytes; /* 0 or 8 bytes */
unsigned char* outIvData;
Dynamic channels are valid for this request. A channel value of zero is valid.
NUM_DES_LOADCTX_DESC defines the number of descriptors within the DPD_DES_CBC_CTX_GROUP that
use this request.
DPD_DES_CBC_CTX_GROUP (0x2500) defines the group for all descriptors within this request.
Table 12. DES_LOADCTX_CRYPT_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_SDES_CBC_CTX_ENCRYPT 0x2500 Load encrypted context from a dynamic channel to
encrypt in single DES using CBC mode
DPD_SDES_CBC_DECRYPT_SA_LDCTX 0x2501 Load encrypted context from a dynamic channel to
decrypt in single DES using CBC mode
DPD_TDES_CBC_CTX_ENCRYPT 0x2502 Load encrypted context from a dynamic channel to
decrypt in single DES using CBC mode
DPD_TDES_CBC_CTX_DECRYPT 0x2503 Load encrypted context from a dynamic channel to
encrypt in single DES using CBC mode