SEC 2.0 Reference Device Driver User's Guide
Table Of Contents
- SEC 2.0 Reference Device Driver User’s Guide
- 1 Overview
- 2 Device Driver Components
- 3 User Interface
- 4 Individual Request Type Descriptions
- 4.1 Random Number Requests
- 4.2 DES Requests
- 4.3 ARC4 Requests
- 4.4 Hash Requests
- 4.5 HMAC Requests
- 4.6 AES Requests
- 4.7 Integer Public Key Requests
- 4.8 ECC Public Key Requests
- 4.9 IPSec Requests
- 4.10 802.11 Protocol Requests
- 4.11 SRTP Protocol Requests
- 5 Sample Code
- 6 Linux Environment
- 7 VxWorks Environment
- 8 Porting

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0
Freescale Semiconductor PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE 17
Individual Request Type Descriptions
4.4 Hash Requests
4.4.1 HASH_REQ
COMMON_REQ_PREAMBLE
unsigned long ctxBytes;
unsigned char *ctxData;
unsigned long inBytes;
unsigned char *inData;
unsigned long outBytes; /* length is fixed by algorithm */
unsigned char *outData;
NUM_MDHA_DESC defines the number of descriptors within the DPD_HASH_LDCTX_HASH_ULCTX_GROUP that use
this request.
DPD_HASH_LDCTX_HASH_ULCTX_GROUP (0x4400) defines the group for all descriptors within this request.
NUM_MDHA_PAD_DESC defines the number of descriptors within the
DPD_HASH_LDCTX_HASH_PAD_ULCTX_GROUP that use this request.
DPD_HASH_LDCTX_HASH_PAD_ULCTX_GROUP (0x4500) defines the group for all descriptors within this request.
Table 11 . HASH_REQ Valid Descriptors (0x4400) (opId)
Descriptors Value Function Description
DPD_SHA256_LDCTX_HASH_ULCTX 0x4400 Load context, compute digest using SHA-256 hash
algorithm, then save the resulting context
DPD_MD5_LDCTX_HASH_ULCTX 0x4401 Load context, compute digest using MD5 hash
algorithm, then save the resulting context
DPD_SHA_LDCTX_HASH_ULCTX 0x4402 Load context, compute using SHA-1 hash algorithm,
then save the resulting context
DPD_SHA256_LDCTX_IDGS_HASH_ULCTX 0x4403 Load context, compute digest with SHA-256 IDGS
hash algorithm, then store the resulting context
DPD_MD5_LDCTX_IDGS_HASH_ULCTX 0x4404 Load context, compute digest with MD5 IDGS hash
algorithm, then store the resulting context
DPD_SHA_LDCTX_IDGS_HASH_ULCTX 0x4405 Load context, compute digest with SHA-1 IDGS hash
algorithm, then store the resulting context