User guide

64 MPC184/MPC185 Security Co-Processor Software User’s Guide MOTOROLA
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions Global Definitions
4.6.10.3 IPSEC_AES_CBC_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 hashKeyBytes;
unsigned char* hashKeyData;
unsigned long cryptKeyBytes;
unsigned char* cryptKeyData;
unsigned long cryptCtxInBytes;
unsigned char* cryptCtxInData;
unsigned long hashInDataBytes;
unsigned char* hashInData;
unsigned long inDataBytes;
unsigned char* inData;
unsigned char* cryptDataOut;
unsigned long hashDataOutBytes;
unsigned char* hashDataOut;
Dynamic channels are valid for this request.
NUM_IPSEC_AES_CBC_DESC defines the number of descriptors within the DPD_IPSEC_AES_CBC_GROUP
that use this request.
DPD_IPSEC_AES_CBC_GROUP (0x8000) defines the group for all descriptors within this request.
Table 46. IPSec_AES_CBC_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_IPSEC_AES_CBC_ENCRYPT_MD5_APAD 0x8000 Perform the IPSec process of encrypting in AES
using CBC mode with MD5 auto padding
DPD_IPSEC_AES_CBC_ENCRYPT_SHA_APAD 0x8001 Perform the IPSec process of encrypting in AES
using CBC mode with SHA-1 auto padding
DPD_IPSEC_AES_CBC_ENCRYPT_SHA256_APAD 0x8002 Perform the IPSec process of encrypting in AES
using CBC mode with SHA-256 auto padding
DPD_IPSEC_AES_CBC_ENCRYPT_MD5 0x8003 Perform the IPSec process of encrypting in AES
using CBC mode with MD5
DPD_IPSEC_AES_CBC_ENCRYPT_SHA 0x8004 Perform the IPSec process of encrypting in AES
using CBC mode with SHA-1
DPD_IPSEC_AES_CBC_ENCRYPT_SHA256 0x8005 Perform the IPSec process of encrypting in AES
using CBC mode with SHA-256
DPD_IPSEC_AES_CBC_DECRYPT_MD5_APAD 0x8006 Perform the IPSec process of decrypting in AES
using CBC mode with MD5 auto padding
DPD_IPSEC_AES_CBC_DECRYPT_SHA_APAD 0x8007 Perform the IPSec process of decrypting in AES
using CBC mode with SHA-1 auto padding
DPD_IPSEC_AES_CBC_DECRYPT_SHA256_APAD 0x8008 Perform the IPSec process of decrypting in AES
using CBC mode with SHA-256 auto padding