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 resulti ng 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