User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 59
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.10.2 IPSEC_ECB_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 hashInDataBytes;
unsigned char* hashInData;
unsigned long inDataBytes;
unsigned char* inData;
unsigned long hashDataOutBytes;
unsigned char* hashDataOut;
unsigned char* cryptDataOut;
Dynamic and static channels are valid for this request.
NUM_IPSEC_ECB_DESC defines the number of descriptors within the DPD_IPSEC_ECB_GROUP that use
this request.
DPD_IPSEC_ECB_GROUP (0x7100) defines the group for all descriptors within this request.
Table 44. IPSec_ECB_REQ Valid Descriptors (opId) for Dynamic Requests
Descriptors Value Function Description
DPD_IPSEC_ECB_SDES_ENCRYPT_MD5_PAD 0x7100 Perform the IPSec process of encrypting in single
DES using ECB mode with MD5 padding
DPD_IPSEC_ECB_SDES_ENCRYPT_SHA_PAD 0x7101 Perform the IPSec process of encrypting in single
DES using ECB mode with SHA-1 padding
DPD_IPSEC_ECB_SDES_ENCRYPT_SHA256_PAD 0x7102 Perform the IPSec process of encrypting in single
DES using ECB mode with SHA-256 padding
DPD_IPSEC_ECB_SDES_DECRYPT_MD5_PAD 0x7103 Perform the IPSec process of decrypting in single
DES using ECB mode with MD5 padding
DPD_IPSEC_ECB_SDES_DECRYPT_SHA_PAD 0x7104 Perform the IPSec process of decrypting in single
DES using ECB mode with SHA-1 padding
DPD_IPSEC_ECB_SDES_DECRYPT_SHA256_PAD 0x7105 Perform the IPSec process of decrypting in single
DES using ECB mode with SHA-256 padding
DPD_IPSEC_ECB_TDES_ENCRYPT_MD5_PAD 0x7106 Perform the IPSec process of encrypting in triple
DES using ECB mode with MD5 padding
DPD_IPSEC_ECB_TDES_ENCRYPT_SHA_PAD 0x7107 Perform the IPSec process of encrypting in triple
DES using ECB mode with SHA-1 padding
DPD_IPSEC_ECB_TDES_ENCRYPT_SHA256_PAD 0x7108 Perform the IPSec process of encrypting in triple
DES using ECB mode with SHA-256 padding
DPD_IPSEC_ECB_TDES_DECRYPT_MD5_PAD 0x7109 Perform the IPSec process of decrypting in triple
DES using ECB mode with MD5 padding