2 ipsec_ecb_req, Table 25. ipsec_ecb_req valid descriptors (opid) – Freescale Semiconductor SEC2SWUG User Manual

Page 29

Advertising
background image

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 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;

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 25. 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

Advertising