SEC 2.0 Reference Device Driver User’s Guide, Rev. 0
30
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Freescale Semiconductor
Individual Request Type Descriptions
4.9.3 IPSEC_AES_CBC_REQ
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;
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.
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
DPD_IPSEC_ECB_TDES_DECRYPT_SHA_PAD
0x710A
Perform the IPSec process of decrypting in triple DES
using ECB mode with SHA-1 padding
DPD_IPSEC_ECB_TDES_DECRYPT_SHA256_PAD
0x710B
Perform the IPSec process of decrypting in triple DES
using ECB mode with SHA-256 padding
Table 26.
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
Table 25.
IPSEC_ECB_REQ
Valid Descriptors (
opId
) (continued)