beautypg.com

Freescale Semiconductor SEC2SWUG User Manual

Page 28

background image

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0

28

PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE

Freescale Semiconductor

Individual Request Type Descriptions

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_CBC_DESC

defines the number of descriptors within the

DPD_IPSEC_CBC_GROUP

that use this

request.

DPD_IPSEC_CBC_GROUP

(0x7000) defines the group for all descriptors within this request.

Table 24. IPSEC_CBC_REQ Valid Descriptors (opId) Descriptors

Descriptor Value

Function

Description

DPD_IPSEC_CBC_SDES_ENCRYPT_MD5_PAD

0x7000

Perform the IPSec process of encrypting in single
DES using CBC mode with MD5 padding

DPD_IPSEC_CBC_SDES_ENCRYPT_SHA_PAD

0x7001

Perform the IPSec process of encrypting in single
DES using CBC mode with SHA-1 padding

DPD_IPSEC_CBC_SDES_ENCRYPT_SHA256_PAD

0x7002

Perform the IPSec process of encrypting in single
DES using CBC mode with SHA-256 padding

DPD_IPSEC_CBC_SDES_DECRYPT_MD5_PAD

0x7003

Perform the IPSec process of decrypting in single
DES using CBC mode with MD5 padding

DPD_IPSEC_CBC_SDES_DECRYPT_SHA_PAD

0x7004

Perform the IPSec process of decrypting in single
DES using CBC mode with SHA-1 padding

DPD_IPSEC_CBC_SDES_DECRYPT_SHA256_PAD

0x7005

Perform the IPSec process of decrypting in single
DES using CBC mode with SHA-256 padding

DPD_IPSEC_CBC_TDES_ENCRYPT_MD5_PAD

0x7006

Perform the IPSec process of encrypting in triple DES
using CBC mode with MD5 padding

DPD_IPSEC_CBC_TDES_ENCRYPT_SHA_PAD

0x7007

Perform the IPSec process of encrypting in triple DES
using CBC mode with SHA-1 padding

DPD_IPSEC_CBC_TDES_ENCRYPT_SHA256_PAD

0x7008

Perform the IPSec process of encrypting in triple DES
using CBC mode with SHA-256 padding

DPD_IPSEC_CBC_TDES_DECRYPT_MD5_PAD

0x7009

Perform the IPSec process of decrypting in triple DES
using CBC mode with MD5 padding

DPD_IPSEC_CBC_TDES_DECRYPT_SHA_PAD

0x700A

Perform the IPSec process of decrypting in triple DES
using CBC mode with SHA-1 padding

DPD_IPSEC_CBC_TDES_DECRYPT_SHA256_PAD

0x700B

Perform the IPSec process of decrypting in triple DES
using CBC mode with SHA-256 padding