SEC 2.0 Reference Device Driver User’s Guide, Rev. 0
Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 29
Individual Request Type Descriptions
4.9.2 IPSEC_ECB_REQ
COMMON_REQ_PREAMBLE
unsigned long hashKeyB ytes;
unsigned char *hashKeyD ata;
unsigned long cryptKey Bytes;
unsigned char *cryptKey Data;
unsigned long hashInDa taBytes;
unsigned char *hashInDa ta;
unsigned long inDataBy tes;
unsigned char *inData;
unsigned long hashData OutBytes;
unsigned char *hashData Out;
unsigned char *cryptDat aOut;
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.
Table25. IPSEC_ECB_REQ Valid Descriptors (opId)
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