User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 19
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.2.4 DES_CRYPT_GETCTX_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 */
unsigned long outCtxBytes; /* 0 or 8 bytes */
unsigned char* outCtxData;
Dynamic channels are not valid for this request. A channel value of zero is invalid.
NUM_DES_CRYPT_UNLOADCTX_STATIC_DESC defines the number of descriptors within the
DPD_DES_SA_CRYPT_ULCTX_GROUP that use this request.
DPD_DES_SA_CRYPT_ULCTX_GROUP (0x2300) defines the group for all descriptors within this request.
Table 10. DES_CRYPT_GETCTX_STATIC_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_SDES_CBC_ENCRYPT_SA_CRYPT_ULCTX 0x2300 Get context from a static channel that was
encrypted in single DES using CBC mode
DPD_SDES_CBC_DECRYPT_SA_CRYPT_ULCTX 0x2301 Get context from a static channel that was
decrypted in single DES using CBC mode
DPD_SDES_ECB_ENCRYPT_SA_CRYPT_ULCTX 0x2302 Get context from a static channel that was
encrypted in single DES using ECB mode
DPD_SDES_ECB_DECRYPT_SA_CRYPT_ULCTX 0x2303 Get context from a static channel that was
decrypted in single DES using ECB mode
DPD_TDES_CBC_ENCRYPT_SA_CRYPT_ULCTX 0x2304 Get context from a static channel that was
encrypted in triple DES using CBC mode
DPD_TDES_CBC_DECRYPT_SA_CRYPT_ULCTX 0x2305 Get context from a static channel that was
decrypted in triple DES using CBC mode
DPD_TDES_ECB_ENCRYPT_SA_CRYPT_ULCTX 0x2306 Get context from a static channel that was
encrypted in triple DES using ECB mode
DPD_TDES_ECB_DECRYPT_SA_CRYPT_ULCTX 0x2307 Get context from a static channel that was
decrypted in triple DES using ECB mode