4 ipsec_aes_ecb_req – Freescale Semiconductor SEC2SWUG User Manual

Page 31

Advertising
background image

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

Freescale Semiconductor

PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE

31

Individual Request Type Descriptions

4.9.4 IPSEC_AES_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 char *cryptDataOut;

unsigned long hashDataOutBytes;

unsigned char *hashDataOut;

NUM_IPSEC_AES_ECB_DESC

defines the number of descriptors within the

DPD_IPSEC_AES_ECB_GROUP

that use

this request.

DPD_IPSEC_AES_ECB_GROUP

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

DPD_IPSEC_AES_CBC_ENCRYPT_MD5

0x8003

Perform the IPSec process of encrypting in AES
using CBC mode with MD5

DPD_IPSEC_AES_CBC_ENCRYPT_SHA

0x8004

Perform the IPSec process of encrypting in AES
using CBC mode with SHA-1

DPD_IPSEC_AES_CBC_ENCRYPT_SHA256

0x8005

Perform the IPSec process of encrypting in AES
using CBC mode with SHA-256

DPD_IPSEC_AES_CBC_DECRYPT_MD5_APAD

0x8006

Perform the IPSec process of decrypting in AES
using CBC mode with MD5 auto padding

DPD_IPSEC_AES_CBC_DECRYPT_SHA_APAD

0x8007

Perform the IPSec process of decrypting in AES
using CBC mode with SHA-1 auto padding

DPD_IPSEC_AES_CBC_DECRYPT_SHA256_APAD

0x8008

Perform the IPSec process of decrypting in AES
using CBC mode with SHA-256 auto padding

DPD_IPSEC_AES_CBC_DECRYPT_MD5

0x8009

Perform the IPSec process of decrypting in AES
using CBC mode with MD5

DPD_IPSEC_AES_CBC_DECRYPT_SHA

0x800A

Perform the IPSec process of decrypting in AES
using CBC mode with SHA-1

DPD_IPSEC_AES_CBC_DECRYPT_SHA256

0x800B

Perform the IPSec process of decrypting in AES
using CBC mode with SHA-256

Table 26. IPSEC_AES_CBC_REQ Valid Descriptors (opId) (continued)

Descriptors Value

Function

Description

Advertising